Browse Source

bugfix

ahk-v1
Mar Alegre 3 years ago
parent
commit
539113a4b6
  1. 16
      lib/HoldRepeat.ahk
  2. 8
      src/Deep Rock Galactic.ahk

16
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

8
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

Loading…
Cancel
Save