-
Notifications
You must be signed in to change notification settings - Fork 7
/
RegistryClasses.hta
214 lines (204 loc) · 5.61 KB
/
RegistryClasses.hta
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<html>
<head>
<hta:application
applicationName="Registry classes manager"
helpFile="RegistryClasses.md"
icon="regedit.exe"
innerBorder="No"
singleinstance="Yes"
scroll="No">
<script language="VBScript"
src="src/RegistryClasses.vbs">
</script>
</head>
<body>
<!-- Hive selector -->
<p class="inputLabel"> Hive</p>
<select id="hiveSelector" onchange="RefreshFields"></select>
<!-- File type -->
<p class="inputLabel"> File type: extension name or * </p>
<input
type="text"
id="fileType"
onchange="fileType_OnKeyUp"
class="textInput spaceBottom" />
<input
type="button"
id="deleteFileType"
value="Delete file type"
class="spaceLeft spaceBottom" /><br />
<!-- ProgId -->
<span class="inputLabel spaceTop"> ProgId </span>
<input
type="checkbox"
id="useRegPid"
class="spaceLeft"
onclick="RefreshFields"
title="When checked, the ProgId from the file-type key (e.g. Software\Classes\.txt) is used"
checked /> Use registry value if available <br />
<input
type="text"
id="progId"
class="textInput" />
<input
type="button"
id="deleteProgId"
value="Delete ProgId"
class="spaceLeft" /><br />
<!-- Verb selector -->
<p class="inputLabel"> Verb
<input
type="checkbox"
id="extended"
class="spaceLeft" />
<span> Require <i> shift </i> + right click </span>
</p>
<select id="verbSelector" class="spaceRight"></select>
<input
type="button"
id="deleteVerb"
value="Delete verb" /><br />
<!-- Command -->
<div id="commandFields">
<span class="inputLabel"> Command
<input
type="checkbox"
id="commandEnabler"
class="spaceLeft" /> Edit
</span><br />
<input
type="text"
id="command"
class="filespec"
onchange="command_OnKeyUp" />
<input
type="button"
id="browseForCommandButton"
value="..." />
</div>
<!-- New verb, Configure class, and Elevate buttons -->
<input
type="button"
id="newVerbButton"
value="New verb"
class="spaceTop" />
<input
type="button"
id="configureClassButton"
value="Configure class"
class="spaceLeft spaceRight" />
<input
type="button"
id="elevateButton"
value="Elevate"
title="Elevate privileges"
class="spaceTop" />
<!-- New verb subfields -->
<fieldset id="newVerbSubfields">
<legend id="newVerbLegend"></legend>
<p class="inputLabel"> Verb name</p>
<input
type="text"
id="newVerb"
class="textInput spaceRight"
onchange="newVerb_OnKeyUp" />
<input
type="button"
id="saveNewVerbButton"
value="OK "
class="spaceRight" />
<input
type="button"
id="cancelNewVerbButton"
value="Cancel" /><br />
</fieldset>
<!-- Configure class subfields -->
<fieldset id="classSubfields">
<legend> Configure class</legend>
<fieldset>
<legend id="progIdLegend"></legend>
<p class="inputLabel"> Class description</p>
<input
type="text"
id="classDescription"
class="textInput filespec" /><br />
<p class="inputLabel"> Default icon file</p>
<input
type="text"
id="iconFile"
class="filespec" />
<input
type="button"
id="browse4IconButton"
value="..." />
</fieldset>
<fieldset>
<legend id="shellNewLegend"></legend>
<span class="inputLabel"> Template file
<input
type="checkbox"
id="nullFileCheckbox"
class="spaceLeft" /> Create an empty file
</span>
<input
type="text"
id="templateFile"
class="filespec" />
<input
type="button"
id="browse4TemplateButton"
value="..." />
</fieldset>
<input
type="button"
id="saveClassButton"
value="OK "
class="spaceTop" />
<input
type="button"
id="cancelClassButton"
value="Cancel"
class="spaceTop spaceLeft" />
</fieldset>
<!-- Error message -->
<div id="feedbackDiv" class="error spaceTop"></div>
<style>
body {
font-family: sans-serif;
font-size: smaller;
background-color: ButtonFace;
cursor: default;
}
.inputLabel {
margin-top: 10px;
margin-bottom: 2px;
}
.textInput {
margin-top: 2px;
}
fieldset {
padding: 10px;
border-width: 3px;
}
.spaceTop {
margin-top: 10px;
}
.spaceLeft {
margin-left: 6px;
}
.spaceRight {
margin-right: 6px;
}
.spaceBottom {
margin-bottom: 6px;
}
.error {
font-weight:bold;
color: darkred;
}
.filespec {
width: 94%;
}
</style>
</body>
</html>