bool SendKey(int, uint, uint)
Sends a keyboard key value to target
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
key |
int A Windows virtual key value. |
modifiers |
(Optional) uint Modifier key mask. Mask Flags: Shift = 1, Ctrl = 2, Alt = 4. Defaults to 0. |
target |
(Optional) uint Targets: Current = 0 (Sends to whatever currently has focus), Smart = 1 (Sends to the active desktop window), Browser = 2 (Sends to the active browser), Caller = 3 (Sends to the calling JavaScript browser). Defaults to 0. |
Return
True if the key was sent
Examples
if(!KioUtils.SendKey(0x30)) console.log("Failed to send 0 to field");
Requirements
KioWare for Windows version 8.1 or greater.