Setfocus to Outlook

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
criss

Setfocus to Outlook

Post by criss » Thu Dec 12, 2002 6:22 am

Hi,
does anybody know how to set the focus to an application with a variable window_title? It is no problem if the variable part is at the end because of the asterisk (*), but in Outlook it is at the beginning. The titles are (in my german version)

'Posteingang - Microsoft Outlook' (what means Inbox) or
'Gesendete Objekte - Microsoft Outlook' (Sent Objects).

Can anybody help me?

Best regards
Criss

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Dec 12, 2002 7:42 am

Hi,

Like this:

SetFocus>Microsoft Outlook*

The asterisk just says 'find the first window which CONTAINS the preceeding text regardless of case and position'.

As the documentation says: "If it cannot make an exact match it then looks at all windows and sets focus to the first one it finds whose title contains the entered text."

Note that it looks for a title that *contains* the text - the position is irellevent. It isn't like a filename wildcard.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Criss

Post by Criss » Thu Dec 12, 2002 8:05 am

Oh, thank you. Next time I have to read the help file more careful.

Best regards
Criss

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts