Windows Media Player Control SDK Banner Art
*Contents *Index  *Topic Contents
*Previous Topic: Processing Embedded Script Commands
*Next Topic: Monitoring Stream Status and Network Reception

Capturing Keyboard and Mouse Events

The EnableContextMenu and ClickToPlay properties provide for user input through the image window. If EnableContextMenu is true, right-clicking on the image window opens a context menu that gives the user access to many of the Microsoft® Windows Media™ Player control properties. When the ClickToPlay property is true, users can start the Windows Media Player by clicking the image window.

To receive mouse movement and mouse click events, set the SendMouseMoveEvents and SendMouseClickEvents properties to true. Mouse events include the following:

To receive keyboard events, set the SendKeyboardEvents property to true. Keyboard events include the following:


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