Code: Select all
#Persistent
SetTimer, checkcolor, 1, Fast
Return
checkcolor:
If Pix(215, 1004) = 0x2C2021
Send y
Return
; Simplified version of PixelGetColor =P
Pix(x, y){
PixelGetColor, r, %x%, %y%
Return r
}
F11::EXITAPP
Also the color in game seems to vary/differ , how do i correctly detect different shades of same color in my script