Jump to content

Recommended Posts

Posted (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 by =sinister=
Posted (edited)

; Process if the pixel at (100, 200) isn't white (#FFFFFF)
If PixelGetColor(100, 200) <> 0xFFFFFF Then

Edited by LxP
Posted (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.

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")
EndIf

Edit

Beaten by one of the masters

Edited 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

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
×
×
  • Create New...