From 539113a4b66543e7cb56ec0423b0c8411baafbfd Mon Sep 17 00:00:00 2001 From: Mar Alegre Date: Tue, 29 Nov 2022 18:33:31 -0500 Subject: [PATCH] bugfix --- lib/HoldRepeat.ahk | 16 ++++++++-------- src/Deep Rock Galactic.ahk | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/HoldRepeat.ahk b/lib/HoldRepeat.ahk index 4a768f9..60a11f4 100644 --- a/lib/HoldRepeat.ahk +++ b/lib/HoldRepeat.ahk @@ -5,7 +5,7 @@ _TurboOn := [] Hold(Primary, Secondary) { - Send {%Primary% down} + Send, {Blind}{%Primary% down} if ( Secondary.Length() != 0 ) { ThisLoop := Func("HoldLoop").bind(Primary,Secondary) SetTimer, %ThisLoop%, 50 @@ -19,7 +19,7 @@ HoldLoop(Primary, Secondary) { } for index,key in Secondary { if GetKeyState(key,"P") { - Send,{Blind} {%Primary% up} + Send, {Blind}{%Primary% up} SetTimer, , Delete return } @@ -27,7 +27,7 @@ HoldLoop(Primary, Secondary) { } Repeat(Primary, Secondary) { - Send,{Blind} {%Primary% up} + Send, {Blind}{%Primary% up} Sleep 100 RepeatVar := 0 Loop { @@ -40,10 +40,10 @@ Repeat(Primary, Secondary) { } } if (RepeatVar == 1) { - Send,{Blind} {%Primary% down} + Send, {Blind}{%Primary% down} RepeatVar := 0 } else { - Send,{Blind} {%Primary% up} + Send, {Blind}{%Primary% up} RepeatVar := 1 } Sleep 100 @@ -52,7 +52,7 @@ Repeat(Primary, Secondary) { ; Sets key to hold if single tap, or repeat if double tap HoldOrRepeat(Primary, Secondary) { - Send,{Blind} {%Primary% down} + Send, {Blind}{%Primary% down} KeyWait, %Primary%, D, T0.2 if (ErrorLevel = 0) { Repeat(Primary,Secondary) @@ -69,9 +69,9 @@ Turbo(Target,Hold) { } else { _TurboOn["%Target%_%Hold%"]:=1 While GetKeyState(Hold,"P") { - Send,{Blind} {%Target% down} + Send, {Blind}{%Target% down} Sleep 25 - Send,{Blind} {%Target% up} + Send, {Blind}{%Target% up} Sleep 25 } _TurboOn["%Target%_%Hold%"]:=0 diff --git a/src/Deep Rock Galactic.ahk b/src/Deep Rock Galactic.ahk index 6fcc97b..3cd53a9 100644 --- a/src/Deep Rock Galactic.ahk +++ b/src/Deep Rock Galactic.ahk @@ -38,13 +38,13 @@ RemoveTooltip: ; } else { ; Depositing:=1 ; While GetKeyState("E","P") { -; Send,{Blind} {E down} +; Send, {Blind}{E down} ; Sleep 25 -; Send,{Blind} {E up} +; Send, {Blind}{E up} ; Sleep 25 -; Send,{Blind} {LCtrl down} +; Send, {Blind}{LCtrl down} ; Sleep 25 -; Send,{Blind} {LCtrl up} +; Send, {Blind}{LCtrl up} ; Sleep 25 ; } ; Depositing:=0