Hi Justme,just me wrote: ↑10 Jul 2021, 07:19Maybe:Code: Select all
HookEnded(InputHook) { ... If (EndReason = "Max") { If (IsDown) && ((A_TickCount - IsDown) >= Treshold) { Switch Input { Case "s": ; a & s Send ... Case "d": ; a & d Send Case "f": ; a & f Send ... Case " ": ; a & space Send ... Case "w": ; a & w Send ... Case "e": ; a & e Send ... Default: ; a & anything else Send %PriorKey%%Input% } } Else Send %PriorKey%%Input% } ... }
With my very limited knowledge and with a lot of shooting in the dark, I have implemented your code into the below but I must have done something wrong Could you please help me to fix? And, could you please help me a bit more: I couldn't find where it specifies "a" in your code ie. if I want to have another codes with, say, "f" instead of "a" for things like: f+a=Tab,... then where should I replace that "a" to an "f" in your code please?
Thank you very much Justme!!
Code: Select all
HookEnded(InputHook) {
EndReason := InputHook.EndReason
Input := InputHook.Input
InputHook.Stop()
If (EndReason = "Max") {
If (IsDown) && ((A_TickCount - IsDown) >= Treshold) {
Switch Input {
Case "s": ; a & s
Send {WheelDown}{WheelDown}{WheelDown}
Case "d": ; a & d
Send WheelUp}{WheelUp}{WheelUp}{WheelUp}
Case "f": ; a & f
Send LButton
Case " ": ; a & space
Send RButton
Case "w": ; a & w
Send Escape
Case "e": ; a & e
Send Delete
Default: ; a & anything else
Send %PriorKey%%Input%
}
}
Else
Send %PriorKey%%Input%
}
IsDown := 0
PriorKey := "a"
}