Jump to content

Question


Recommended Posts

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 :D

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...