Created
April 14, 2023 00:32
-
-
Save carneloot/b94a4908c61cbc18f2e9fc3929826670 to your computer and use it in GitHub Desktop.
Lifeweaver QoL improvement
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
| #Requires AutoHotkey v2.0 | |
| _dashKey := "L" | |
| _petalKey := "M" | |
| isHealing := true | |
| ; Ctrl + Alt + P stops the script | |
| ^!P:: ExitApp | |
| #HotIf WinActive("Overwatch") | |
| ; Left button to damage | |
| ~LButton:: | |
| { | |
| global | |
| if (isHealing) { | |
| Send "{WheelUp}" | |
| isHealing := false | |
| } | |
| Send "{LButton down}" | |
| } | |
| LButton Up::Send "{LButton up}" | |
| ; Right button to heal | |
| ~RButton:: | |
| { | |
| global | |
| if (!isHealing) { | |
| Send "{WheelUp}" | |
| isHealing := true | |
| } | |
| Send "{LButton down}" | |
| } | |
| RButton Up::Send "{LButton up}" | |
| ; If space pressed twice, send dash | |
| Space:: | |
| { | |
| if (A_PriorHotkey = "Space" && A_TimeSincePriorHotkey < 400) { | |
| Send _dashKey | |
| } else { | |
| Send "{Space}" | |
| } | |
| } | |
| ; Bind Shift to petal | |
| LShift:: | |
| { | |
| Send _petalKey | |
| } | |
| #HotIf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment