I have an HTML Page with an Windows media player embed. It
is set to autostart and go full screen. I also have an IR
remote control mapped to certain keyboard functions (ie
Ctrl-1). I have written a script to capture those keyboard
functions and perform various WMP functions when they are
presses (ie stop,play,pause). This script doesn't seem to
capture events in full screen mode, however when I uncheck
full screen they work fine. I need this to work in full
screen. My sample function is below. Anyone have any ideas?
ex:
function
<SCRIPT LANGUAGE="VBScript">
Sub MediaPlayer_KeyDown(iKeyCode, iShiftState)
//Represents Ctrl-1
If iKeyCode == 49 AND iShiftState == 2 Then MediaPlayer.Pause();
End IfEnd Sub
</SCRIPT>
embed
<object id="MediaPlayer" width="640" height="480" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" type="application/x-oleobject">
<param name="FileName" value="japan4.mpg">
<PARAM NAME="autostart" VALUE="1">
<PARAM NAME="showcontrols" VALUE="1">
<PARAM NAME="AllowChangeDisplaySize" VALUE="1">
<PARAM NAME="DisplaySize" VALUE="3">
<PARAM NAME="ShowGotoBar" VALUE="0">
<PARAM NAME="Volume" VALUE="-250">
<PARAM NAME="SendKeyboardEvents" VALUE="1">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="1">
<PARAM NAME="EnableFullScreenControls" VALUE="1">
</object>
is set to autostart and go full screen. I also have an IR
remote control mapped to certain keyboard functions (ie
Ctrl-1). I have written a script to capture those keyboard
functions and perform various WMP functions when they are
presses (ie stop,play,pause). This script doesn't seem to
capture events in full screen mode, however when I uncheck
full screen they work fine. I need this to work in full
screen. My sample function is below. Anyone have any ideas?
ex:
function
<SCRIPT LANGUAGE="VBScript">
Sub MediaPlayer_KeyDown(iKeyCode, iShiftState)
//Represents Ctrl-1
If iKeyCode == 49 AND iShiftState == 2 Then MediaPlayer.Pause();
End IfEnd Sub
</SCRIPT>
embed
<object id="MediaPlayer" width="640" height="480" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" type="application/x-oleobject">
<param name="FileName" value="japan4.mpg">
<PARAM NAME="autostart" VALUE="1">
<PARAM NAME="showcontrols" VALUE="1">
<PARAM NAME="AllowChangeDisplaySize" VALUE="1">
<PARAM NAME="DisplaySize" VALUE="3">
<PARAM NAME="ShowGotoBar" VALUE="0">
<PARAM NAME="Volume" VALUE="-250">
<PARAM NAME="SendKeyboardEvents" VALUE="1">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="1">
<PARAM NAME="EnableFullScreenControls" VALUE="1">
</object>