Sign in to follow this  
Followers 0
Souls

nooby help ;D

2 posts in this topic

Ok i made this little script for an autoclicker:

$coord = PixelSearch( 440, 482, 677, 536, 0x040204, 0, 2) = 
If Not @error Then
    Exit

It's supposed to scan the area and if it founds that color it should close the program.

Could someone check the script plz and tell me if there are any errors? :P

Share this post


Link to post
Share on other sites



Ok i made this little script for an autoclicker:

$coord = PixelSearch( 440, 482, 677, 536, 0x040204, 0, 2) = 
If Not @error Then
    Exit

It's supposed to scan the area and if it founds that color it should close the program.

Could someone check the script plz and tell me if there are any errors? :P

$coord = PixelSearch( 440, 482, 677, 536, 0x040204, 0, 2) ; <-- Get rid of the =
if @Error = 0 then ; <-- Don't get in the bad habit of using @Error as a boolean
  Exit

Auto3Lib: A library of over 1200 functions for AutoIt

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