foolove Posted October 8, 2011 Posted October 8, 2011 While 1 = 1 $result = _ImageSearch("ok.bmp",1,$x1,$y1,0) if $result=1 Then MouseClick("Left",$x1,$y1,1,0) EndIf WEnd I know you use ExitLoop but how would I apply to this bc it seems like an infinite loop
somdcomputerguy Posted October 8, 2011 Posted October 8, 2011 Put ExitLoop between the MouseClick() and EndIf. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
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