Sign in to follow this  
Followers 0
Iceband

Need a little help with a command line

3 posts in this topic

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?

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0