Sign in to follow this  
Followers 0
Xav

While help

5 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

Thansk Guys :)!

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0