Kripp4 Posted April 29, 2005 Share 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 Link to comment Share on other sites More sharing options...
JSThePatriot Posted April 29, 2005 Share 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 Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
Kripp4 Posted April 29, 2005 Author Share Posted April 29, 2005 Wheey thx Link to comment Share on other sites More sharing options...
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