mike1212 Posted March 31, 2005 Share 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 Link to comment Share on other sites More sharing options...
buzz44 Posted March 31, 2005 Share Posted March 31, 2005 yes quite simple =) $color = PixelGetColor(591,559) If $color <> 12030226 Then mouseClick("Left",591,559) Endif qq Link to comment Share on other sites More sharing options...
mike1212 Posted March 31, 2005 Author Share 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 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