This is what i actually have:
Code: Select all
F7::
Toggle :=false
Loop
{
CoordMode, Pixel, Screen
Coordmode, Mouse, Screen
LoopCount = 1
PixelSearch, pX, pY, 174, 189, 1630, 900, 0x000FF, 0, fast
LoopCount := A_Index
If ErrorLevel
{
}
else
{
MouseClick, ,%px%, %py%
Sleep 1500
}
sleep 2000
}until !Toggle
I tried to create something by tracking if the loop count was even or odd but i could'nt make it work :_ .
Thank you in advance!