Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | event.keybard:global:down SEARCH    

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

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

  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...

Event
event.keybard:global:down

Language: MioScript
Product: MioFactory


Raised when the window has the focus and when the user presses a key.

If you need to catch keyboard messages for a specific window, use event.keybard:down

The value of the key can be retrieved with keyboard.global.code.

This event can also be used to react to the Windows Media Center remote control.


Author Window ID
 
The ID of the window who raised the event can be retrieved with window.eventAuthor

Group Name
 
As this event is raised by a window, the window group name must be added at the end of the declaration.

For more information: window.create, window.ID.create, window.ID.group.set



MioScript Sample Code

event.keyboard:global:down
    alert(keyboard.global.code())
event.end