mike1212 Posted March 31, 2005 Posted March 31, 2005 Hello I have the following code in a script. $color = PixelGetColor(591,559) If $color = 12030226 Then mouseClick("Left",591,559) Endif It works fine, however, as you know if the pixel color is 12030226 then it will mouseclick at 591,559. What I am trying to do is reverse the command, to read " if not 12030226 then mouseclick the location". Is there away to make a "If not" command? Thank You
buzz44 Posted March 31, 2005 Posted March 31, 2005 yes quite simple =) $color = PixelGetColor(591,559) If $color <> 12030226 Then mouseClick("Left",591,559) Endif qq
mike1212 Posted March 31, 2005 Author Posted March 31, 2005 yes quite simple =)$color = PixelGetColor(591,559) If $color <> 12030226 Then mouseClick("Left",591,559) Endif<{POST_SNAPBACK}>Hello BurrupThe code question you answered for me, works great. Thank You Mike1212
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