Iceband Posted January 1, 2010 Share Posted January 1, 2010 Hey guys, I know what I am trying to get autoit to do, just now sure how I want it to do it... I want it to stand by mid script until the color of a box goes back to normal, I have pre set normal in the script, but im having a hard time telling it to "wait" until the box goes back to normal: Do Sleep ( 1000 ) Until $coord = PixelSearch( $res19, $res20, $res19, $res20, $var2 ) not @error when I try Do Sleep ( 1000 ) Until $coord = PixelSearch( $res19, $res20, $res19, $res20, $var2 )is not @error it kicks back an error. Any advice? Link to comment Share on other sites More sharing options...
somdcomputerguy Posted January 1, 2010 Share Posted January 1, 2010 Try Do Sleep ( 1000 ) $coord = PixelSearch( $res19, $res20, $res19, $res20, $var2 ) Until $NormalColorVariable <> $coord - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Iceband Posted January 1, 2010 Author Share Posted January 1, 2010 Thanks Snowmaker, your the man, worked like a charm. For some reason I just couldnt wrap my head around what I was doing wrong there. Appreciate the help. 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