Code:
one := 0
two := 0
firstoptionstatus := "Disabled"
secondoptionstatus := "Disabled"
Gui, +AlwaysOnTop -Caption +Owner +LastFound +E0x20
Gui, Margin, 0, 0
Gui, Color, Grey
Gui, Font, cRed s12 bold, Arial
Gui, Add, Text, x13 y13 w140 h20, Recoil Reduce:
Gui, Add, Text, x144 y13 w70 h20 vfirstoptionstatus, %firstoptionstatus%
Gui, Add, Text, x13 y43 w140 h20, Toggle Autofire:
Gui, Add, Text, x144 y43 w70 h20 vsecondoptionstatus, %secondoptionstatus%
WinSet, Transparent, 230
Gui, Show, x0 y0 h70 w227
;##################################################################################
Hotkey, $LButton, Toggle
Hotkey, $*~LButton, Toggle
Numpad1::
Hotkey, $*~LButton, Toggle
one += 1
if Mod(one, 2) = 1{
firstoptionstatus := "Enabled"
GuiControl, ,firstoptionstatus, %firstoptionstatus%
Gui, Show
WinActivate, Tom Clancy's The Division
}
else{
firstoptionstatus := "Disabled"
GuiControl, ,firstoptionstatus, %firstoptionstatus%
Gui, Show
WinActivate, Tom Clancy's The Division
return
}
return
Numpad2::
Hotkey, $LButton, Toggle
two += 1
if Mod(two, 2) = 1{
secondoptionstatus := "Enabled"
GuiControl, ,secondoptionstatus, %secondoptionstatus%
Gui, Show
WinActivate, Tom Clancy's The Division
}
else{
secondoptionstatus := "Disabled"
GuiControl, ,secondoptionstatus, %secondoptionstatus%
Gui, Show
WinActivate, Tom Clancy's The Division
return
}
return
*~LButton::
if WinActive("ahk_exe TheDivision.exe")
{
while GetKeyState("LButton")
{
DllCall("mouse_event", uint, 1, int, 0, int, 5, uint, 1, int, 0)
Sleep, 5
}
}
return
LButton::
if WinActive("ahk_exe TheDivision.exe")
{
Loop
{
SetMouseDelay 30
Click
If (GetKeyState("LButton","P")=0)
Break
}
}
else{
Click
}
return
You can change how fast the autofire works by changing "SetMouseDelay" on line 73 to any number of milliseconds you want.