Sign in to follow this  
Followers 0
adrian1386

Why isn't this working?

3 posts in this topic

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

Share this post


Link to post
Share on other sites



Try this:

$target = PixelGetColor (125,152)
If $target == 0xE8E8E8 OR $target == 0xE8E83A Then
Sleep(1000)
Else 
ContinueLoop
EndIf


AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line

Share this post


Link to post
Share on other sites

Thank you :P

Share this post


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
Sign in to follow this  
Followers 0