Jump to content

About PixelGetColor


ITSky8
 Share

Recommended Posts

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...