MCPcopy
hub / github.com/cluic/wxauto / KeyboardInput

Function KeyboardInput

wxauto/uiautomation.py:2544–2546  ·  view source on GitHub ↗

Create Win32 struct `KEYBDINPUT` for `SendInput`.

(wVk: int, wScan: int, dwFlags: int = KeyboardEventFlag.KeyDown, time_: int = 0)

Source from the content-addressed store, hash-verified

2542
2543
2544def KeyboardInput(wVk: int, wScan: int, dwFlags: int = KeyboardEventFlag.KeyDown, time_: int = 0) -> INPUT:
2545 """Create Win32 struct `KEYBDINPUT` for `SendInput`."""
2546 return _CreateInput(KEYBDINPUT(wVk, wScan, dwFlags, time_, None))
2547
2548
2549def HardwareInput(uMsg: int, param: int = 0) -> INPUT:

Callers 1

SendUnicodeCharFunction · 0.85

Calls 2

_CreateInputFunction · 0.85
KEYBDINPUTClass · 0.85

Tested by

no test coverage detected