From 2d35999c8ef633a3913d347fb769403eeb0f2f92 Mon Sep 17 00:00:00 2001 From: Mar Alegre Date: Sat, 16 Apr 2022 14:59:18 -0400 Subject: [PATCH] updated timings --- lib/HoldRepeat.ahk | 9 +++++---- src/Deep Rock Galactic.ahk | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/HoldRepeat.ahk b/lib/HoldRepeat.ahk index 3a56f1d..536d30b 100644 --- a/lib/HoldRepeat.ahk +++ b/lib/HoldRepeat.ahk @@ -35,11 +35,12 @@ Repeat(Primary, Secondary) { return } } - if (RepeatVar == 2) { - SendEvent, {%Primary%} - RepeatVar := 1 + if (RepeatVar == 1) { + SendEvent, {%Primary% down} + RepeatVar := 0 } else { - RepeatVar++ + SendEvent, {%Primary% up} + RepeatVar := 1 } Sleep 50 } diff --git a/src/Deep Rock Galactic.ahk b/src/Deep Rock Galactic.ahk index c05fcf7..f769f1a 100644 --- a/src/Deep Rock Galactic.ahk +++ b/src/Deep Rock Galactic.ahk @@ -22,6 +22,7 @@ WrapperWindow:="Deep Rock Galactic " ~*LButton:: While GetKeyState("LButton","P") { SendInput, {LButton down} - Sleep 20 + Sleep 50 } +SendInput, {LButton up} Return \ No newline at end of file