Last active
August 29, 2024 12:54
-
-
Save drewchapin/df20f952df566be7978265d176f39bc8 to your computer and use it in GitHub Desktop.
Template for an HTML Application file (.hta), add to C:\Windows\ShellNew, and add ShellNew\Filename="HTML Application.hta" to .hta HKCR key.
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> | |
<!-- | |
@tag hta:application | |
@attribute ApplicationName Sets the name of the HTA. | |
@attribute Border [Thick]|Thin|None | |
@attribute BorderStyle [Normal]|Raised|Sunken|Complex|Static | |
@attribute Caption [Yes]|No | |
@attribute ContextMenu [Yes]|No | |
@attribute Icon Path/To/Icon.ico | |
@attribute MaximizeButton [Yes]|No | |
@attribute MinimizeButton [Yes]|No | |
@attribute Navigable [Yes]|No | |
@attribute Scroll [Auto]|Yes|No | |
@attribute Selection [Yes]|No | |
@attribute ShowInTaskbar [Yes]|No | |
@attribute SingleInstance [Yes]|No | |
@attribute SysMenu [Yes]|No (Setting to No will remove close button) | |
@attribute WindowsState [Normal]|Minimize|Maximize | |
--> | |
<hta:application | |
ApplicationName="Application Name" | |
Border="Thin" | |
BorderStyle="Static" | |
Caption="Yes" | |
ContextMenu="No" | |
MaximizeButton="No" | |
MinimizeButton="No" | |
Navigable="No" | |
Scroll="No" | |
Selection="No" | |
ShowInTaskbar="Yes" | |
SingleInstance="Yes" | |
SysMenu="Yes" | |
WindowState="Normal" | |
> | |
<title>Application Title</title> | |
<style type="text/css"> | |
body { | |
font-size: 11pt; | |
font-family: "Segoe UI", Calibri, Arial, Sans-Serif; | |
} | |
</style> | |
<script language="VBScript"> | |
Window.ResizeTo 400,300 | |
</script> | |
</head> | |
<body> | |
<p>Hello world!</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment