Skip to content

Instantly share code, notes, and snippets.

@raresteak
Created October 26, 2022 20:58
Show Gist options
  • Save raresteak/3561c6faf84dc68ad53dc756afe7ed40 to your computer and use it in GitHub Desktop.
Save raresteak/3561c6faf84dc68ad53dc756afe7ed40 to your computer and use it in GitHub Desktop.
Example hta application
<HTML>
<HEAD>
<TITLE>HTA Demo</TITLE>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="myApp"
BORDER="thin"
BORDERSTYLE="normal"
CAPTION="yes"
ICON=""
MAXIMIZEBUTTON="yes"
MINIMIZEBUTTON="yes"
SHOWINTASKBAR="no"
SINGLEINSTANCE="no"
SYSMENU="yes"
VERSION="1.0"
WINDOWSTATE="maximize"/>
<SCRIPT>
/* This function also retrieves the value of the commandLine property,
which cannot be set as an attribute. */
function window.onload()
{
sTempStr = "applicationName = " + oHTA.applicationName + "\n" +
"border = " + oHTA.border + "\n" +
"borderStyle = " + oHTA.borderStyle + "\n" +
"caption = " + oHTA.caption + "\n" +
"commandLine = " + oHTA.commandLine + "\n" +
"icon = " + oHTA.icon + "\n" +
"maximizeButton = " + oHTA.maximizeButton + "\n" +
"minimizeButton = " + oHTA.minimizeButton + "\n" +
"showInTaskBar = " + oHTA.showInTaskbar + "\n" +
"singleInstance = " + oHTA.singleInstance + "\n" +
"sysMenu = " + oHTA.sysMenu + "\n" +
"version = " + oHTA.version + "\n" +
"windowState = " + oHTA.windowState + "\n" ;
oPre.innerText = sTempStr;
}
</SCRIPT>
</HEAD>
<BODY SCROLL="no">
<PRE ID=oPre> </PRE>
</BODY>
</HTML>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment