Skip to content

Instantly share code, notes, and snippets.

@carneloot
Created April 14, 2023 00:32
Show Gist options
  • Select an option

  • Save carneloot/b94a4908c61cbc18f2e9fc3929826670 to your computer and use it in GitHub Desktop.

Select an option

Save carneloot/b94a4908c61cbc18f2e9fc3929826670 to your computer and use it in GitHub Desktop.
Lifeweaver QoL improvement
#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