Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | keyboard.keyState SEARCH    

  Functions
keyboard.global.code
keyboard.ID.char
keyboard.ID.code
keyboard.keyState

  Events
event.keybard:down
event.keybard:global:down
event.keybard:global:up
event.keybard:press
event.keybard:up

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
keyboard.keyState

Language: MioScript
Product: MioFactory


Syntax

keyboard.keyState(KeyCode)


Parameters

KEYCODEKeyCodeCode 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

1Left mouse button
2Right mouse button
3Center mouse button, if exists
8Backspace
9Tab
13Enter
16SHIFT
17CTRL
18ALT
20Caps Lock
27Escape
32Space bar
33page Up
34Page Down
35End
36Home
37Left arrow
38Up arrow
39Right arrow
40Down arrow
45Insert
46Delete
48-570 to 9
65-90A to Z
96-1050 to 9 (numeric pad)
112-123Functions keys F1 to F12
114-135Functions keys F13 to F20
106* on numeric pad
107+ on numeric pad
109- on numeric pad
110. on numeric pad
111/ on numeric pad