Jump to content

Recommended Posts

Posted (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 by Xav
Posted

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!"

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...