Alexisppp12345@
use this ahk macro recorder and output the text to me, it will be much easier
(no need description)
use this ahk macro recorder and output the text to me, it will be much easier
(no need description)
also, this script loop 38 times yet? if no, what exactly does the 38 loop does that u dont need to do with recording? cant u just do 38 times in the recording? why makes the script complicated, i mean i suppose when i hit run macro, the macro will do exactly the right thingQuote:
I did it one time all the click except these that will be repeated 38 times.
msgbox, Ctrl+Q to Pause
x1=0
x2=1024
y1=0
y2=768
color=0xff79ff
loop
{
PixelSearch, Px, Py, x1, y1, x2, y2, %color%, 10, Fast
if ErrorLevel
{
sleep 300
}
else
{
click %Px%, %Py%
sleep 1000
}
IfWinNotActive, [C
pause
}
^q::pause
msgbox, Ctrl+Q to pause
loop
{
ImageSearch, FoundX, FoundY, 300 ,100, 1000, 300, *5 C:\image1.bmp
if ErrorLevel = 0
click 659,222
sleep 50
ImageSearch, FoundX, FoundY, 300 ,100, 1000, 300, *5 C:\image2.bmp
if ErrorLevel = 0
click 410,243
sleep 50
ImageSearch, FoundX, FoundY, 300 ,100, 1000, 300, *5 C:\image3.bmp
if ErrorLevel = 0
click 667,244
sleep 50
ImageSearch, FoundX, FoundY, 300 ,100, 1000, 300, *5 C:\image4.bmp
if ErrorLevel = 0
click 667,244
sleep 50
}
^q::pause