Posts: 58
Threads: 20
Joined: Aug 2019
Hello,
Say I wanted to press the shift key 5 times in a row to activate sticky keys.
Recoding this action in QM results in:
'S{}S{}S{}S{}S{} ;; Shift Shift Shift Shift Shift
but it does not activate sticky keys.
I even tried putting delays between the key stokes, or using the key S command, but neither seems to work
Thanks in advance
Posts: 12,074
Threads: 141
Joined: Dec 2002
OS turns on Sticky Keys only when Shift comes from the physical keyboard.
Posts: 58
Threads: 20
Joined: Aug 2019
Thank you Gintaras for the reply. The reason I'm asking is because I'm trying to do a similar action to turn on a specific application that has the hotkey {Left Crtl}{Left Ctrl}{Numpad 2}
I suspect it may also require the physical keyboard, but I'll try to give it a shot .
Is there a specific designation in QM for the LEFT Ctrl button? Or is there no distinction between the left and right ctrl?
Thanks in advance as always
Posts: 12,074
Threads: 141
Joined: Dec 2002
Posts: 58
Threads: 20
Joined: Aug 2019
Thank you!
Is there any way to bypass the physical keyboard using QM code?
Posts: 12,074
Threads: 141
Joined: Dec 2002
QM uses API SendInput, and there are no other ways.
Posts: 58
Threads: 20
Joined: Aug 2019
07-13-2023, 10:14 PM
(This post was last modified: 07-13-2023, 11:23 PM by cuitino.)
Thank you. Do you know of any other language which allows sending physical key strokes? Or is that something that's not possible by definition?
Posts: 12,074
Threads: 141
Joined: Dec 2002
I don't know. Maybe possible, but for it need to create a driver, and it is beyond my knowledge.
Posts: 58
Threads: 20
Joined: Aug 2019
No problem at all. I appreciate your help as always! Have a wonderful weekend