Code: Select all
IniRead, defaultdelay,conf.ini, Setup, Defaultdelay
IniRead, defaulthold,conf.ini, Setup, Defaulthold
IniRead, popupwindow,conf.ini, Setup, Popupwindow
IniRead, autoopengame,conf.ini, Setup, Autoopengame
suspend
delay:=defaultdelay
hold:=defaulthold
if (popupwindow=1) {
InputBox,delay,Delay, Please enter delay between each mouse click. (in miliseconds recommended 65-200),,300,200,,,,,%defaultdelay%
InputBox,hold,Mouse button hold, Please enter time holding your LMB. (in miliseconds),,250,200,,,,,%defaulthold%
MsgBox, To activate/deactivate Macro press "F1"
}
if (autoopengame=1){
WinWait, APB Reloaded,
IfWinNotActive, APB Reloaded, , WinActivate, APB Reloaded,
WinWaitActive, APB Reloaded,
}
F1::
Suspend, Permit
soundbeep
sleep 3
soundbeep
Suspend
LButton::
Loop
{
if not GetKeyState("LButton", "P")
break
Random, delaytr, delay, delay+4
Random, holdtr, hold, hold+2
Click down
sleep holdtr
Click up
sleep delaytr
}
return
^LButton::
Loop
{
if not GetKeyState("LButton", "P")
break
Random, delaytr, delay, delay+4
Random, holdtr, hold, hold+2
Click down
sleep holdtr
Click up
sleep delaytr
}
return
+LButton::
Loop
{
if not GetKeyState("LButton", "P")
break
Random, delaytr, delay, delay+4
Random, holdtr, hold, hold+2
Click down
sleep holdtr
Click up
sleep delaytr
}
return
F12::
ExitApp, Permit
soundbeep
sleep 3
soundbeep
sleep 3
soundbeep
sleep 3
soundbeep
ExitApp
return