=sinister= Posted October 15, 2005 Posted October 15, 2005 (edited) Im looking for a code that is like "if pixelgetcolor" only I want it so it checks a certain X Y position to see if a color is there and if the color isn't there, well, it goes on with the script. Im guesing that it will look like this: If PixelNotGetColor($x,$y) >= $colour then ;script here endif only this script isn't working so, plz help! Ive looked in the Autoit Help file and couldn't find anything. Edited October 15, 2005 by =sinister=
LxP Posted October 15, 2005 Posted October 15, 2005 (edited) ; Process if the pixel at (100, 200) isn't white (#FFFFFF) If PixelGetColor(100, 200) <> 0xFFFFFF Then Edited October 15, 2005 by LxP
BigDod Posted October 15, 2005 Posted October 15, 2005 (edited) Im looking for a code that is like "if pixelgetcolor" only I want it so it checks a certain X Y position to see if a color is there and if the color isn't there, well, it goes on with the script. Im guesing that it will look like this:If PixelNotGetColor($x,$y) >= $colour then ;script here endifonly this script isn't working so, plz help! Ive looked in the Autoit Help file and couldn't find anything.Here is mt pathetic attempt at it$colour = "13421772" $var = PixelGetColor( 10 , 100 ) If $var = $colour then MsgBox(0,"Result", "Colours match") Else MsgBox(0,"Result", "Colours do not match") EndIfEditBeaten by one of the masters Edited October 15, 2005 by BigDod Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
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