Problems finding windows with asterisks in window title

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
pasdad1
Junior Coder
Posts: 21
Joined: Wed Nov 17, 2004 1:09 am

Problems finding windows with asterisks in window title

Post by pasdad1 » Wed Nov 17, 2004 1:17 am

I have been experiencing problems with the various windows commands (setfocus, getwindowpos, etc) when the window title I am looking for HAS asterisks. I am also needing to specify the wildcard asterisk in the window-title, and this is where I believe the problem arrises.

Example: Window title is "** Main Menu **"

SetFocus>Main Menu* //This doesn't always work right?

How could I do an exact match without the extra asterisks gettting
in the way?

Also I am seeing problems when the window title has "/" (slash)
character in it.

Any Ideas????

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Wed Nov 17, 2004 1:35 am

Have you tried this?

SetFocus>** Main Menu ***
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

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