Xav Posted June 24, 2008 Posted June 24, 2008 (edited) If @error Then -----> here how can i make the while Stop if it dont see anymore the Color? While 1 If not @error $Coord = PixelSearch( 0, 0,800,580, 0xA420FC ) If IsArray($Coord) Then MouseClick("Left",$Coord[0], $Coord[1],1,1) If @error Then Edited June 24, 2008 by Xav
Linux Posted June 24, 2008 Posted June 24, 2008 While 1 If not @error $Coord = PixelSearch( 0, 0,800,580, 0xA420FC ) If IsArray($Coord) Then MouseClick("Left",$Coord[0], $Coord[1],1,1) else Exitloop endif ;If @error Then Exitloop WEND You can help! Donate to AutoIt! or, visit ClimatePREDICTION.netMy posts:Travian Bot Example (100+ servers) BETAHow to Host you code/app for free! (unlimited team number) (Public or Private)"Sir, we're surrounded!" "Excellent. We can attack in any direction!"
aslani Posted June 24, 2008 Posted June 24, 2008 Have you tried Do...Until? Do $Coord = PixelSearch( 0, 0,800,580, 0xA420FC ) If IsArray($Coord) Then MouseClick("Left",$Coord[0], $Coord[1],1,1) Until @error If @error Then ... EndIf [font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version
aslani Posted June 24, 2008 Posted June 24, 2008 If you want to know more, refer to this thread:http://www.autoitscript.com/forum/index.php?showtopic=74489 [font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version
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