|
|
|
|
Functions
Events
MioScript Reference
|
|
Syntax
| keyboard.keyState(KeyCode) |
Parameters
| KEYCODE | KeyCode | Code of the key to check |
Return value
| true if the specified key is currently pressed, false otherwise. |
Description
This function check if the specified key is pressed.
The status of the key can be read when the application do not have the focus.
Key codes| 1 | Left mouse button | | 2 | Right mouse button | | 3 | Center mouse button, if exists | | 8 | Backspace | | 9 | Tab | | 13 | Enter | | 16 | SHIFT | | 17 | CTRL | | 18 | ALT | | 20 | Caps Lock | | 27 | Escape | | 32 | Space bar | | 33 | page Up | | 34 | Page Down | | 35 | End | | 36 | Home | | 37 | Left arrow | | 38 | Up arrow | | 39 | Right arrow | | 40 | Down arrow | | 45 | Insert | | 46 | Delete | | 48-57 | 0 to 9 | | 65-90 | A to Z | | 96-105 | 0 to 9 (numeric pad) | | 112-123 | Functions keys F1 to F12 | | 114-135 | Functions keys F13 to F20 | | 106 | * on numeric pad | | 107 | + on numeric pad | | 109 | - on numeric pad | | 110 | . on numeric pad | | 111 | / on numeric pad | |
|
|
|