Rauchster Posted July 25, 2006 Share Posted July 25, 2006 Is it possible to have a Do command and have 2 Until commands that both activate the next line? Such as: Do $CheckGameLaunch = PixelGetColor (570, 610) Until $CheckGameLaunch = 15626265 Or $CheckGameLaunch = 15513978 MouseClick ("left") I want this to check for a certain pixel to be colored (meaning the button is avaible to click) but sometimes the button moves slightly in the window, so I have the second number in there for when this happens. How can I write this? Link to comment Share on other sites More sharing options...
newb_powa' Posted July 25, 2006 Share Posted July 25, 2006 (edited) You could add If ******* Then exit loop ... Do $CheckGameLaunch = PixelGetColor (570, 610) If $CheckGameLaunch = 15513978 Then Exitloop Endif Until $CheckGameLaunch = 15626265 MouseClick ("left") Edited July 25, 2006 by newb_powa' Link to comment Share on other sites More sharing options...
newb_powa' Posted July 25, 2006 Share Posted July 25, 2006 Did it help you ? Link to comment Share on other sites More sharing options...
Valuater Posted July 25, 2006 Share Posted July 25, 2006 this is what you were looking for ... yes you can Do $CheckGameLaunch = PixelGetColor (570, 610) Until $CheckGameLaunch = 15626265 Or $CheckGameLaunch = 15513978 MouseClick ("left") but... it might need a small sleep in it too! 8) Link to comment Share on other sites More sharing options...
newb_powa' Posted July 25, 2006 Share Posted July 25, 2006 Valuater, thanks to you, I learn too lol. Your answer is probably better then mine. 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