Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Fix for accidental weapon switches
- ; and mouse wheel inputs:
- ; Add delays between inputs,
- ; longer delay if twice (YY)
- #Include Init.ahk
- #If WinActive("ahk_exe HaloInfinite.exe")
- ;Mouse wheel up plus wildcard modifier plus do not suppress
- ~*WheelUp::
- switchWeapon()
- cooldownCheck()
- return
- ;Weapon switch input
- switchWeapon(){
- send {blind}{u up}
- sleep 1
- send {blind}{u down}
- sleep 1
- send {blind}{u up}
- Sleep 55 ;stock cooldown
- return
- }
- ;Check if second switch is fast enough to need an extended cooldown (YY)
- cooldownCheck(){
- if (A_PriorHotkey = "~*WheelUp" and A_TimeSincePriorHotkey < 275)
- {
- ;run sound_test_1.ahk
- Sleep 250
- return
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement