General macro for auto hotkey
^!m:: {
IfWinExist, eGenesis Client
{
WinActivate
Gui, 2:Add, Text,, Recording mouse position`nPlease click on the button.
Gui, 2:Show
KeyWait, LButton, D
MouseGetPos, MinePosX, MinePosY
Gui, 2:Destroy
Sleep, 200 Gui, 2:Add, Text,, Click top left of timer. Gui, 2:Show Keywait, Lbutton, D MouseGetPos, Timer1X, Timer1Y Gui, 2:Destroy
sleep, 200 Gui, 2:Add, Text,, Click bottom right of timer. Gui, 2:Show Keywait, Lbutton, D MouseGetPos, Timer2X, Timer2Y Gui, 2:Destroy
sleep, 200 Gui, 2:Add, Text,, How many pulls/moves? Gui, 2:Add, Edit, Number vNumPulls Gui, 2:Add, Button, default gMineCommit, OK Gui, 2:Show return
MineCommit:
Gui, 2:Submit
Gui, 2:Destroy
loop, %NumPulls%
{
loop
{
Sleep, 800
PixelSearch, Px, Py, %Timer1X%, %Timer1Y%, %Timer2X%, %Timer2Y%, 0x000000
if ErrorLevel = 1
{
break
}
}
MouseClick, left, %MinePosX%, %MinePosY%
}
return
}
}