Share via


Player6.KeyPress (deprecated)

Windows Media Player SDK banner art

This page documents a feature of the Windows Media Player 6.4 ActiveX control. We recommend that you migrate your content to use the Windows Media Player 9 Series ActiveX control. For more information about the Windows Media Player 9 Series ActiveX control, see the Windows Media Player 9 Series SDK.

This 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*

Integer value specifying a standard numeric ANSI keycode.

Remarks

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

Requirements

Version: Windows Media Player version 6.4.

Library: Use msdxm.ocx.

Platform: Windows 98 Second Edition or higher.

See Also