|
|
@ -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 |
|
|
|