Using DVD Event Codes
An event code is code that executes when an event occurs. An event is an action, recognized by the DVD object, for which you can write code to respond. Events can be generated by a user action, such as clicking the mouse or pressing a key on the keyboard. Events are also generated by the system itself, for example, in the case of timers.
DVD-specific events are returned to the Windows Media Player control through the DVDNotify event in the following form.
MediaPlayer_DVDNotify(Event, Param1, Param2)
The following subroutine shows a way to capture the DVD event codes in Microsoft Visual Basic Scripting Edition (VBScript). Note that the DVD event codes should be referred to by a constant integer value, ranging from 257 to 272, 274, or 275. To illustrate how the DVD event codes work, use the DIV tag to create two sections that will display the current event code and the values of its parameter list.