Last active
June 24, 2024 04:03
-
-
Save spacehare/0f75c2348ec353a141e6d5b33fcad6fd to your computer and use it in GitHub Desktop.
so you don't have to keep the button pressed down
This file contains 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
#Requires AutoHotkey v2.0 | |
toggle := false | |
#HotIf WinActive('ahk_exe quakespasm.exe') | |
RButton:: { | |
global toggle := !toggle | |
SendInput toggle ? '{LButton down}' : '{LButton up}' | |
} | |
~LButton:: { | |
global toggle := false | |
} | |
#HotIf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment