Windows Media Player SDK banner art
PreviousNext

Secondary Events

You can determine what other events are taking place when a specific event is triggered. For example, when a mouse button is clicked, you may want to know whether the ALT key was down at the same time.

Event Attributes

The following event attributes are supported for skins:

For more information about these attributes, see the Skin Programming Reference.

Using Secondary Events

You can only process event attributes in JScript code. You must use the following syntax:

event.eventattributename

where eventattributename is the name of the event attribute. For example, to determine whether the ALT key was pressed during a click event, you could use the following lines in your JScript code:

wasAlt = event.altKey ;
if (wasAlt = "True") ...
PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.