Sign in to follow this  
Followers 0
ITSky8

About PixelGetColor

2 posts in this topic

Hello!

I need to monitor my screen's change by checking the Pixel's color change, I know that can get the PixelGetColor(X,Y), and change it to the Hex value, but why my below coding is incorrect, please help to check and advise, thanks!

CheckColor()

Func CheckColor()

$var = PixelGetColor( 10 , 100 )

$Color=String(Hex($var,6))

if $Color="EFEBDE" Then

MsgBox(0,"The color is match")

Else

MsgBox(0,"The color is not match")

EndIf

EndFunc

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