Making a script that clicks when any pixels move
Posted: 07 Jun 2018, 07:21
I want to make a script that clicks when any pixels move on the screen. I understand that AHK has its limitations but I figured id ask anyway. Im somewhat new to AHK and trying to learn something new.
This is what I have so far:
Im just not sure how to express the last line of code properly.
This is what I have so far:
Code: Select all
g::
MouseGetPos, MouseX, MouseY
PixelGetColor, color, %MouseX%, %MouseY%
; If pixel color no longer equals %MouseX%, %MouseY%, click
return