Created
October 26, 2022 20:58
-
-
Save raresteak/3561c6faf84dc68ad53dc756afe7ed40 to your computer and use it in GitHub Desktop.
Example hta application
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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