Souls Posted December 18, 2006 Share Posted December 18, 2006 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? Link to comment Share on other sites More sharing options...
PaulIA Posted December 18, 2006 Share Posted December 18, 2006 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? $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 More sharing options...
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