Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with HTA Sysmenu

Status
Not open for further replies.

gogolch

IS-IT--Management
May 20, 2019
1
CH
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
 
It is missing a space between APPLICATION and APPLICATIONNAME. Change
Code:
<HTA:APPLICATIONAPPLICATIONNAME = "Playing_Video"

to

Code:
<HTA:APPLICATION APPLICATIONNAME = "Playing_Video"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top