How to Focus Window - searchable string at the end of title

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
rm
Newbie
Posts: 1
Joined: Thu Jan 19, 2006 1:26 pm

How to Focus Window - searchable string at the end of title

Post by rm » Thu Jan 19, 2006 1:32 pm

I'm trying to focus on a window that has the searchable string at the end of the window title.
EXAMPLE:

"MY NAME INBOX - Lotus Notes"

This is how Lotus Notes titles all the windows. I want to focus on "Lotus Notes"

Something like setFocus>*Lotus Notes

Would be handy. Is there a workaround?

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Thu Jan 19, 2006 1:37 pm

Try

SET>Lotus Notes*


From the help for SetFocus:
If the last character of the window title specified is an asterisk (*), Macro Scheduler will attempt to setfocus to the first window whose title matches the text entered exactly. 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
Hope this helps,
Dick

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