Windows Media Player Control SDK Banner Art
*Contents *Index  *Topic Contents
*Previous Topic: KeyDown
*Next Topic: KeyUp

KeyPress Event

Occurs when the user presses and releases a key.

Syntax

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

Parameters

iKeyAscii An Integer value specifying a standard numeric ANSI keycode.

Remarks

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

See Also

KeyDown, KeyUp, SendKeyboardEvents, Capturing Keyboard and Mouse Events


Top of Page Top of Page
© 1999 Microsoft and/or its suppliers. All rights reserved. Terms of Use.