adrian1386 Posted January 3, 2006 Share Posted January 3, 2006 $target = PixelGetColor (125,152) If $target = 0xE8E8E8 OR 0xE8E83A Then Sleep(1000) Else ContinueLoop EndIfWhy 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 comment Share on other sites More sharing options...
Danny35d Posted January 3, 2006 Share Posted January 3, 2006 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 Link to comment Share on other sites More sharing options...
adrian1386 Posted January 3, 2006 Author Share Posted January 3, 2006 Thank you 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