From f0efafadd86e8a5f711c23650fef0236a28f53be Mon Sep 17 00:00:00 2001 From: mar Date: Fri, 23 Dec 2022 20:43:31 -0600 Subject: [PATCH] fix to make dash work --- lib/HoldRepeat.ahk | 2 +- src/Deep Rock Galactic.ahk | 18 ++++++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/lib/HoldRepeat.ahk b/lib/HoldRepeat.ahk index 7b5944c..dbd5b5e 100644 --- a/lib/HoldRepeat.ahk +++ b/lib/HoldRepeat.ahk @@ -62,7 +62,7 @@ Repeat(Primary, Secondary) { ; Sets key to hold if single tap, or repeat if double tap HoldOrRepeat(Primary, Secondary) { Send "{Blind}{" Primary " down}" - if (KeyWait Primary, "D T0.2") { + if KeyWait(Primary, "D T0.2") { Repeat(Primary,Secondary) } else { Hold(Primary,Secondary) diff --git a/src/Deep Rock Galactic.ahk b/src/Deep Rock Galactic.ahk index 1cd6e75..794ef12 100644 --- a/src/Deep Rock Galactic.ahk +++ b/src/Deep Rock Galactic.ahk @@ -43,18 +43,24 @@ RemoveTooltip() { *F3::ToggleFullAuto(3) *F4::ToggleFullAuto(4) +; Do full auto when caps lock is on for enabled weapons +#HotIf (GetKeyState("CapsLock","T") and FullAutoEnabled[EquipState]) +*LButton::TurboOn("LButton") +*LButton UP::TurboOff("LButton") +#HotIf + ; Alt + E holds E *!e UP::Hold("e",["w","a","s","d","Space","LButton","RButton"]) ; Press shift to sprint, only toggles on -*LShift::Send "{Blind}{LShift down}" +*LShift::{ + Send "{Blind}{LShift down}" + if (KeyWait("LShift", "T0.1") and KeyWait("LShift", "D T0.1")) { + Send "{LShift}{LShift}" + } +} *LShift UP::Hold("LShift",,["w"]) ; Hold space rapidly jumps *Space::TurboOn("Space") *Space UP::TurboOff("Space") - -; Do full auto when caps lock is on for enabled weapons -#HotIf (GetKeyState("CapsLock","T") and FullAutoEnabled[EquipState]) -*LButton::TurboOn("LButton") -*LButton UP::TurboOff("LButton") \ No newline at end of file