Kripp4 0 Posted April 29, 2005 hmm... how do i make the pixelsearch stop when it fund the pixel and klickt the cords, and i need it to start from the top again... while 1 Sleep (2000) MouseClick("left", 530, 530) Sleep (1000) MouseClick("left", 604, 333) sleep (1000) MouseClick("left", 604, 424) sleep (5000) While 1 PixelSearch(510, 286, 540, 337, 0x0066CC) If Not @error Then MouseClick("left", 641, 484) EndIf WEnd WEnd Share this post Link to post Share on other sites
JSThePatriot 18 Posted April 29, 2005 Below I have added a ExitLoop. That will I do believe do what you are asking. If you need it to get out of the second loop then add another.JSwhile 1 Sleep (2000) MouseClick("left", 530, 530) Sleep (1000) MouseClick("left", 604, 333) sleep (1000) MouseClick("left", 604, 424) sleep (5000) While 1 PixelSearch(510, 286, 540, 337, 0x0066CC) If Not @error Then MouseClick("left", 641, 484) ExitLoop EndIf WEnd WEnd AutoIt LinksFile-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.ComputerGetInfo UDF's Updated! 11-23-2006External LinksVortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Share this post Link to post Share on other sites