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
wildcards in windows title names..
Moderators: JRL, Dorian (MJT support)
Have a try to set the windows name as a variable

Code: Select all
Let>windowname=Menu Browser[*
SetFocus>%windowname%
get rid!
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 "[".
I will later attach a variable to the title that get as argument,
and this variable come just after "[".
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%