[AHK] Anti-Recoil (or) AutoFire
I played the game again for a day and probably am not going to play it much again, made some improvements since I used my old script again and changed some things around.
Only one can be enabled at once for them to work, autofire takes priority.
NumLock needs to be enabled for "NUMPAD 1,2" to be keys, amazing isn't it?
-There is no exit key, close it from TaskManager or System Tray
To run this script you need AutoHotkey: https://autohotkey.com/
-Make a .ahk file anywhere on the desktop or file explorer then paste the code in. Run the file after saving and voila.
- Only Tested on Windows 10
Preview:
(I'm using a burst-fire pistol here)
ChangeLog:
To change recoil settings:
Only one can be enabled at once for them to work, autofire takes priority.
NumLock needs to be enabled for "NUMPAD 1,2" to be keys, amazing isn't it?
-There is no exit key, close it from TaskManager or System Tray
To run this script you need AutoHotkey: https://autohotkey.com/
-Make a .ahk file anywhere on the desktop or file explorer then paste the code in. Run the file after saving and voila.
- Only Tested on Windows 10
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 s30 bold, Arial
Gui, Add, Text, x13 y0 w500 h40, Recoil Reduce |
Gui, Font, cRed s30 bold, Arial
Gui, Add, Text, x330 y0 w200 h40 vfirstoptionstatus, %firstoptionstatus%
Gui, Add, Text, x13 y50 w500 h40, Auto-Fire |
Gui, Add, Text, x330 y50 w200 h40 vsecondoptionstatus, %secondoptionstatus%
WinSet, Transparent, 200
Gui, Show, x0 y800 h100 w530
;################################################# #################################
Hotkey, $LButton, Toggle
Hotkey, $*~LButton, Toggle
Numpad1::
Hotkey, $*~LButton, Toggle
one += 1
if Mod(one, 2) = 1{
firstoptionstatus := "Enabled"
GuiControl, +clime, firstoptionstatus
GuiControl, ,firstoptionstatus, %firstoptionstatus%
WinActivate, Tom Clancy's The Division
}
else{
firstoptionstatus := "Disabled"
GuiControl, +cred, firstoptionstatus
GuiControl, ,firstoptionstatus, %firstoptionstatus%
WinActivate, Tom Clancy's The Division
return
}
return
Numpad2::
Hotkey, $LButton, Toggle
two += 1
if Mod(two, 2) = 1{
secondoptionstatus := "Enabled"
GuiControl, +clime, secondoptionstatus
GuiControl, ,secondoptionstatus, %secondoptionstatus%
WinActivate, Tom Clancy's The Division
}
else{
secondoptionstatus := "Disabled"
GuiControl, +cred, secondoptionstatus
GuiControl, ,secondoptionstatus, %secondoptionstatus%
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, 8, uint, 1, int, 0)
Sleep, 25
}
}
return
LButton::
if WinActive("ahk_exe TheDivision.exe")
{
Loop
{
SetMouseDelay 30
Click
If (GetKeyState("LButton","P")=0)
Break
}
}
else{
Click
}
return
Preview:
(I'm using a burst-fire pistol here)
ChangeLog:
Changes
-"Enabled" is in green now because why not
-It's bigger now and in a less annoying space (For me at least)
-Doesn't interrupt movement as I now understand that I don't need to spam Gui, show
-It's bigger now and in a less annoying space (For me at least)
-Doesn't interrupt movement as I now understand that I don't need to spam Gui, show
To change recoil settings:
Code:
while GetKeyState("LButton")
{
DllCall("mouse_event", uint, 1, int, 0, int, NumberForAmountOfDownwardsMovement, uint, 1, int, 0)
Sleep, DELAYinBETWEENeachMOVEMENT
}




