wildcards in windows title names..

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
muheeb
Newbie
Posts: 2
Joined: Tue Jul 08, 2003 7:47 am
Location: Nazareth, Israel
Contact:

wildcards in windows title names..

Post by muheeb » Tue Jul 08, 2003 8:07 am

Hi,

I want to use a wildcards (*) at the end of titles in commands
like SetFocus, but I discover that this dones't work with some titles
and the macro doesn't find the window. titles containing the
character "["! if I put "*" after it the macro take "*" as character
in the title, and if I remove the character "[" and put "*" instead of it
it works fine.
e.g. (I have a window with title "Menu Browser[User: .... ]")
SetFocus>Menu Browser* // works fine
SetFocus>Menu Browser[* // doesn't work and it tries to locate
// a window whose title is "Menu Browser[*"

why is that? is there a solution for that?

Thanks

Lumumba

Post by Lumumba » Tue Jul 08, 2003 8:48 am

Have a try to set the windows name as a variable :idea:

Code: Select all

Let>windowname=Menu Browser[*
SetFocus>%windowname%

Lumumba

Post by Lumumba » Tue Jul 08, 2003 8:54 am

Why not get rid of the "[" character?

Code: Select all

SetFocus>Menu Browser*

muheeb
Newbie
Posts: 2
Joined: Tue Jul 08, 2003 7:47 am
Location: Nazareth, Israel
Contact:

get rid!

Post by muheeb » Tue Jul 08, 2003 10:22 am

No I can't get rid of it! I need it to complete the title;
I will later attach a variable to the title that get as argument,
and this variable come just after "[".

Lumumba

Post by Lumumba » Tue Jul 08, 2003 10:37 am

Would this work for you ... ?

Code: Select all

Input>var,Your name please!,John Doe

Let>User=Menu Browser [User:

ConCat>User,%var%
ConCat>User,]

SetFocus>%User%

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