165
www.analogway.com
USER MANUAL
USER MANUAL
USER MANUAL
USER MANUAL
USER MANUAL
USER MANUAL
USER MANUAL
USER MANUAL
KeyA,
KeyB,
KeyC,
KeyD,
KeyE,
KeyF,
KeyG,
KeyH,
KeyI,
KeyJ,
KeyK,
KeyL,
KeyM,
KeyN,
KeyO,
KeyP,
KeyQ,
KeyR,
KeyS,
KeyT,
KeyU,
KeyV,
KeyW,
KeyX,
KeyY,
KeyZ,
Digit1,
Digit2,
Digit3,
Digit4,
Digit5,
Digit6,
Digit7,
Digit8,
Digit9,
Digit0,
Enter,
Escape,
Backspace,
Tab,
Space,
Minus,
Equal,
BracketLeft,
BracketRight,
Backslash,
Semicolon,
Quote,
Backquote,
Comma,
Period,
Slash,
CapsLock,
F1,
F2,
F3,
F4,
F5,
F6,
F7,
F8,
F9,
F10,
F11,
F12,
PrintScreen,
ScrollLock,
Pause,
Insert,
Home,
PageUp,
Delete,
End,
PageDown,
ArrowRight,
ArrowLeft,
ArrowDown,
ArrowUp,
NumLock,
NumpadDivide,
NumpadMultiply,
NumpadSubtract,
NumpadAdd,
NumpadEnter,
Numpad1,
Numpad2,
Numpad3,
Numpad4,
Numpad5,
Numpad6,
Numpad7,
Numpad8,
Numpad9,
Numpad0,
NumpadDecimal,
ContextMenu,
ControlLeft,
ShiftLeft,
AltLeft,
MetaLeft,
ControlRight,
ShiftRight,
AltRight,
MetaRight
Example usage, of "key A" pressed while modifier keys Shift and Ctrl are also down:
send_ui_event("source1", "Keyboard KeyDown Name KeyA Shift Ctrl")
F.c.b.
Keyboard events, Raw keycode interface
While the above is the recommended usage. Advanced users may want to send keys by raw keycode numbers
instead of by key name. The above usage example is functionally the same as the following.
send_ui_event("source1", "Keyboard KeyDown 38 65 Shift Ctrl")
Here, the key name KeyA has been replaced by its two raw keycode numbers 38 and 65. The first keycode
number is called the "uievents-code" (aka "native_keycode") and the "uievents-key" (aka "dom_keycode")
This interface is provided to support the sending of keys that are not present in the "standard 101 keybord
layout”.
The uievents-code is specified here:
https://www.w3.org/TR/uievents-code/#code-value-tables
More helpfully here is a simple table of the uievents-code:
https://developer.mozilla.org/en-
US/docs/Web/API/KeyboardEvent/code/code_values#code_values_on_linux_x11_when_scancode_is_a
vailable
The uievents-key is specified here:
https://www.w3.org/TR/uievents-key/#named-key-attribute-value
More helpfully here is a simple table of the uievents-key:
https://docs.microsoft.com/en-
us/dotnet/api/system.windows.forms.keys
(The w3 key spec was based on Microsoft key enumeration)