I need it to scan a certain area in a certain window for a color and if that color is true, LButton tap. and everything in a loop.
Code: Select all
#Persistent
CoordMode, Pixel, Relative
IfWinActive, Window name
PixelGetColor,0xFE0000,960,540
If Color=0xFE0000
{
Click
}
P.S. if you feel really generous could you please help me expand the scanning area to scan between X 955-965 and Y 535-545
also can I make the script always scan and click when color is true?