Microsoft Windows CE 3.0  

KeyPress

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Occurs when the user presses and releases a key.

Compatibility:Windows Media Player, ActiveMovie

<SCRIPT FOR="MediaPlayer" EVENT="KeyPress(
iKeyAscii
)" LANGUAGE="JScript">
//insert script commands//
</SCRIPT>

Parameters

iKeyAscii
An Integer value specifying a standard numeric ANSI keycode.

Remarks

If the value of the SendKeyboardEventsproperty is true, this event occurs when the Microsoft Windows Media Player control has focus and the user presses and releases a key. If SendKeyboardEventsis false, this event does not occur.

See Also

KeyDown, KeyUp, SendKeyboardEvents, Capturing Keyboard and Mouse Events