foolove 0 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 Share this post Link to post Share on other sites
somdcomputerguy 103 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. Share this post Link to post Share on other sites