Sign in to follow this  
Followers 0

PixelGetColor/Search/CheckSum which should i use?

2 posts in this topic

im having trouble will pixel reading

the situation

the area im supposed to read is constantly changing in color(a shade of Red/Green/Blue)

pixelgetcolor seems to be the right one

but my problem is when i started comparing the value since the area is constantly changing in a different shade variation

i cant get it to work properly

$Spot = PixelGetColor( 190, 104)
If Not $Spot == 854803 ;<-- what should a put here if the color is different shades of R/G/B
;do stuff here

thanks for those that spent time to read

i have just started learning and i dont know what i am supposed to look for so i thought id ask

Share this post

Link to post
Share on other sites

As far as I'm aware, PixelGetColor() does not support shade variation, it simply returns the color at the co-ordinates.

If I were you, I'd rethink whatever it is you are trying to accomplish, or try to work PixelSearch() into your code

which does support pixel variation.

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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