Created
March 31, 2022 11:58
-
-
Save lyf-is-coding/d1c0b73e0b08aefeff4eaf08bbca5ecc to your computer and use it in GitHub Desktop.
AHK recoil reducer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv | |
SendMode Input | |
Insert:: Hotkey, *~$LButton, Toggle | |
*~$LButton:: | |
while GetKeyState("LButton") | |
{ | |
DllCall("mouse_event", uint, 1, int, 0, int, 1, uint, 0, int, 0) | |
Sleep, 15 | |
DllCall("mouse_event", uint, 1, int, 0, int, 1, uint, 0, int, 0) | |
Sleep, 5 | |
} | |
Return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment