The asterisk is used only within the Window functions. But above you are comparing strings. What you want to do is do a substring check or RegEx match. E.g.:
Code: Select all
GetActiveWindow>title,x,y
Position>google,title,1,pGoogle
Position>yahoo,title,2,pYahoo
If>{(%pGoogle%>0) OR (%pYahoo%>0)}
//do something
Endif
The Position command returns the starting position of one string in another. So if google is in title you will get a result of greater than zero. Look at the Position command in the help file.
Note that the above does not consider case.
You could shorten the above and make it case insensitive in one line using:
Code: Select all
GetActiveWindow>title,x,y
If>{(Pos("google",lower(%title%))>0) OR (Pos("yahoo",lower(%title%))>0)}
//do something
Endif
Another way to do it is to use RegEx:
Code: Select all
GetActiveWindow>title,x,y
RegEx>google|yahoo,title,0,matches,num_matches,0
If>num_matches>0
//do something
Endif
Note that by default regex is case insensitive so the above is a little simpler.