styles3000 Posted May 18, 2009 Share Posted May 18, 2009 (edited) I've placed my question within the pdf doc below.How To Merge Scripts With Different Outcomes Edited May 18, 2009 by styles3000 Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted May 19, 2009 Share Posted May 19, 2009 AutoIt is not multithreaded so you can't run multiple WinWait(). You have to throw them away and use a non-blocking function like WinGetTitle() .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
exodius Posted May 19, 2009 Share Posted May 19, 2009 (edited) Actually... if the title is always going to be "HyperVRE" and only the window text is different, he could use: WinWait ("HyperVRE") $sText = WinGetText ("HyperVRE") If StringInStr ($sText, "10 Selected keywords") Then MsgBox (0, "", "Execute") ElseIf StringInStr ($sText, "0 Selected keywords ") Then MsgBox (0, "", "Restart") ElseIf StringInStr ($sText, "0 Selected keywords") Then MsgBox (0, "", "Restart") ElseIf StringInStr ($sText, "Click OK to display") Then MsgBox (0, "", "Execute") ElseIf StringInStr ($sText, "Unable to get keywor") Then MsgBox (0, "", "Restart") EndIf *Edit - Of course, you'd actually do whatever it is you intend to do at each of the places where there's a messagebox now. Edited May 19, 2009 by exodius 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