I found a similar script.
H::
Click down
goto, start
start:
PixelSearch, Px, Py, 1045, 562, 1165, 570, 0x2727C6, 0, Fast
If ErrorLevel = 0
goto end
Else
{
sleep 150
goto start
}
end:
Can someone modify this to while pressing and holding F it scans, and if detects red it right clicks once? I can tweak it once I get a basic script going.
Thanks