Jump to content

nooby help ;D


Souls
 Share

Recommended Posts

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

Link to comment
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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...