Sign in to follow this  
Followers 0
=sinister=

if pixelNOTgetcolor

3 posts in this topic

#1 ·  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=

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Edited by LxP

Share this post


Link to post
Share on other sites

#3 ·  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


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

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