Hi, i'm note be able to hide Sysmenu on hta when using Video. Here is my code :
<html>
<head>
<title>Video_1</title>
<HTA:APPLICATIONAPPLICATIONNAME = "Playing_Video"
ID = "Playing_Video"
BORDERSTYLE = "Normal"
CAPTION = "No"
CONTEXTMENU = "No"
INNERBORDER = "No"
MAXIMIZEBUTTON = "No"
MINIMIZEBUTTON = "No"
NAVIGABLE = "No"
SCROLL = "No"
SCROLLFLAT = "No"
SELECTION = "No"
SHOWINTASKBAR = "No"
SINGLEINSTANCE = "Yes"
SYSMENU = "No"
/>
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<script>
window.onload = function sizeIt(){
var sw = (screen.width-800)/2;
var sh = (screen.height-600)/2;
window.moveTo(sw,sh);window.resizeTo(800,600)}
</script>
</head>
<script language="VBScript">
Sub Window_OnLoad
'This method will be called when the application loads
'Add your code here
End Sub
</script>
<body bgcolor="white">
<video id="vid_1" width="750" height="500"
autoplay="true" source src="C:\temp\test.mp4" type="video/mp4"></video>
<script type='text/javascript'>
document.getElementById('vid_1').addEventListener('ended',myHandler,false);
function myHandler(e) {
window.close()
}
</script>
</body>
</html>
on all other HTA that i create, i can hide Sysmenu, Maximize or Minimize Button but not on this.
Any help will be appreciate.
Thanks
<html>
<head>
<title>Video_1</title>
<HTA:APPLICATIONAPPLICATIONNAME = "Playing_Video"
ID = "Playing_Video"
BORDERSTYLE = "Normal"
CAPTION = "No"
CONTEXTMENU = "No"
INNERBORDER = "No"
MAXIMIZEBUTTON = "No"
MINIMIZEBUTTON = "No"
NAVIGABLE = "No"
SCROLL = "No"
SCROLLFLAT = "No"
SELECTION = "No"
SHOWINTASKBAR = "No"
SINGLEINSTANCE = "Yes"
SYSMENU = "No"
/>
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<script>
window.onload = function sizeIt(){
var sw = (screen.width-800)/2;
var sh = (screen.height-600)/2;
window.moveTo(sw,sh);window.resizeTo(800,600)}
</script>
</head>
<script language="VBScript">
Sub Window_OnLoad
'This method will be called when the application loads
'Add your code here
End Sub
</script>
<body bgcolor="white">
<video id="vid_1" width="750" height="500"
autoplay="true" source src="C:\temp\test.mp4" type="video/mp4"></video>
<script type='text/javascript'>
document.getElementById('vid_1').addEventListener('ended',myHandler,false);
function myHandler(e) {
window.close()
}
</script>
</body>
</html>
on all other HTA that i create, i can hide Sysmenu, Maximize or Minimize Button but not on this.
Any help will be appreciate.
Thanks