Follow the 2 scripts ..
Code: Select all
numpad2::
MouseGetPos,a,b, xpos,ypos
Loop
{
sleep 4500
Send ^z
sleep 1000
MouseClick, left, 1189, 622
sleep 25000
Send ^z
sleep 1000
sleep 1000
Send {f1}
sleep 500
Send {f8}
sleep 500
Send {f6}
sleep 500
Send {numpad0}
}
return
insert::Exitapp
Code: Select all
#SingleInstance, force
#MaxThreadsPerHotkey, 2
~numpad0::
while (GetKeyState("numpad0", "p"))
{
loop 3
{
PixelSearch, OutputVarX, OutputVarY, 0, 0, 1024, 720, 0x905848, 0, Fast
If ErrorLevel = 0
{
Send, {end}
Click, %OutputVarX%, %OutputVarY%
sleep 1000
}
PixelSearch, OutputVarX, OutputVarY, 0, 0, 1024, 720, 0xE09818, 0, Fast
If ErrorLevel = 0
{
Send, {end}
Click, %OutputVarX%, %OutputVarY%
sleep 1000
}
PixelSearch, OutputVarX, OutputVarY, 0, 0, 1024, 720, 0x0038D0, 0, Fast
If ErrorLevel = 0
{
Send, {end}
Click, %OutputVarX%, %OutputVarY%
sleep 1000
}
}
}
Return
insert::Exitapp