redhairedfoo Posted March 7, 2008 Posted March 7, 2008 Hey everyone, Im trying to Loop PixelSearch, lets say 50 times, or until it finds the pixel i want. When it finds the pixel, i want to click it and exit the loop. Im having a bit of trouble figuring this one out and would appreciate any help or advice! thanks, red
Uriziel01 Posted March 7, 2008 Posted March 7, 2008 (edited) Something like that? $i=1 while 1 $pixel=PixelSearch ( left, top, right, bottom, color [, shade-variation] [, step]] ) if @error<>1 then MouseClick ( "left" ,$pixel[0], $pixel[1], 1) Exitloop endif if $i>50 then exitloop $i+=1 wend Edited March 7, 2008 by Uriziel01
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