OiMunk Posted December 24, 2007 Share Posted December 24, 2007 Each case is for a different Window, but the script needs to know which window. The only difference between these Windows are their Titles, but only half the characters in the Window title stay consistent. Is there some kind of wildcard character I can use? thanks, Opt("WinTitleMatchMode", 2) $a = WinGetTitle("","") Select Case $a = "part of window title" ; MsgBox(0,"","") Case $a = "different window title snippet" MsgBox(0,"","") Case $a = "" MsgBox(0,"","") Case $a = "" MsgBox(0,"","") Case $a = "" MsgBox(0,"","") EndSelect Link to comment Share on other sites More sharing options...
LOULOU Posted December 24, 2007 Share Posted December 24, 2007 Each case is for a different Window, but the script needs to know which window. The only difference between these Windows are their Titles, but only half the characters in the Window title stay consistent. Is there some kind of wildcard character I can use? thanks,Opt("WinTitleMatchMode", 2) $a = WinGetTitle("","")Select Case $a = "part of window title" ; MsgBox(0,"","") Case $a = "different window title snippet" MsgBox(0,"","") Case $a = "" MsgBox(0,"","") Case $a = "" MsgBox(0,"","") Case $a = "" MsgBox(0,"","") EndSelectUse stringRexexp it's the right choice for you Link to comment Share on other sites More sharing options...
OiMunk Posted December 24, 2007 Author Share Posted December 24, 2007 Super, thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now