Jump to content

Recommended Posts

$target = PixelGetColor (125,152)

If $target = 0xE8E8E8 OR 0xE8E83A Then

Sleep(1000)

Else

ContinueLoop

EndIf

Why can't I use OR in my expression? Both work fine on their own but I want the $target to read 0xE8E8E8 OR 0xE8E83A. It seems it decides that any color in the OR part will do so even if the If statement is false it doesnt do the Else part.

Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...