Code: Select all
~k & l::
Send {Backspace}
return
Others scripts that i found for example send backspace only on key release, k and l separately send on release to, this is bad to.
When i used my mechanical programmable keyboard there is a combo keys with qmk, they are based on timings, like one key after pressing wait for another to make combo, and those are worked pretty well for me.
I tried something like this:
Code: Select all
~k::
lDown:=A_TickCount
keywait l
lDuration:=(A_TickCount-lDown)
If (lDuration<112) {
Send {Backspace}
}
Else
Send k
return
~l & k::
kDown:=A_TickCount
keywait k
kDuration:=(A_TickCount-kDown)
If (kDuration<112) {
Send {Backspace}
}
Else
Send l
return
May someone help?
[Mod edit: Moved topic to AHK v1 help, based on posted code and posting history. Please use the right subforums going forward!]