Jump to content

How/Can you detect a pixel color change?


Recommended Posts

HotKeySet("{esc}","quit")
$pix=PixelGetColor(500,500)
$quit=False
Do
    
sleep(500);check every half a second
$pix2=PixelGetColor(500,500)
if $pix <> $pix2 then 
MsgBox(0,"", "That Pixel Has Changed",0)
$pix=PixelGetColor(500,500)
EndIf
until $quit=true

func quit()
    $quit=True
MsgBox(0,"","Bye",0)
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...