Also I would like to have it loop about 25 times if anyone could help me with that as well thanks
P.S. the mousemove is only for me to see that the script activated its not a function for it to work.
Code: Select all
f1::
mousemove 1870, 1000, 0
Stop:= 0
i:=0
While Stop = 0
{
PixelSearch,ax,ay,1870,1000,1870,1000,0x333333,25,Fast RGB
If ErrorLevel = 0
{
~ctrl::SendInput ^{F4}
~ctrl Up::SendInput !{F4}
}
}
return