-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSPX_VIDEOTOOL.hta
208 lines (176 loc) · 5.59 KB
/
SPX_VIDEOTOOL.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
<!DOCTYPE HTML>
<!--
SPX Videotool
VIDEOFOLDER SCANNER TOOL (c) 2020 tuomo@smartpx.fi
------------------------------------------------------------
+++++ NOTHING TO MODIFY HERE. SEE SRC/SPX_SCANNER.VBS ++++++
This is a HTA based utility which will scan defined folders
and when a suitable sourcefile is found in it, it will convert
the file and will place output to a new subfolder(s).
All the functionality is in the src folder script files, this
HTA file only works as a graphical user interface for script.
------------------------------------------------------------
-- MIT LICENSE --
Copyright 2020 Tuomo Kulomaa <tuomo@smartpx.fi>
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom
the Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall
be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-->
<HTML lang="en">
<HEAD>
<!-- HTA SECTION ====================================================== -->
<HTA:APPLICATION
APPLICATIONNAME="HTA Name"
ID="SPXHTA"
VERSION="1.0"
SINGLEINSTANCE="yes"
border="thick"
borderStyle="static"
caption="yes"
maximizeButton="no"
minimizeButton="yes"
showInTaskbar="yes"
windowState="normal"
innerBorder="yes"
navigable="yes"
scroll="no"
scrollFlat="yes"
icon="src/smartpx64.ico"
/>
<title>SPX Videotool</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="src/spx_styles.css">
</HEAD>
<script type="text/vbscript" src="src/spx_functions.vbs"></script>
<script LANGUAGE="VBScript">
' This area is for VBS code.
</script>
<script type="text/javascript">
// This area is for JAVASCRIPT code.
function TogglePause()
{
ONtext = "\u258E \u258E" ;
OFFtext = "►";
btn = document.getElementById("stateButton");
curValue = btn.value;
if (curValue == ONtext)
{
btn.value = OFFtext;
}
else
{
btn.value = ONtext;
}
}
function addToConsole(text,clearFirst)
{
el = document.getElementById("SPXconsole");
if (clearFirst)
{
el.innerHTML = text;
}
else
{
tx = el.innerHTML;
el.innerHTML = tx + '<br>' + text;
}
}
function js_hello(msg)
{
alert(msg);
}
function SPX_Tools()
{
var e = document.getElementById("toolsDropdown");
var cmd = e.options[e.selectedIndex].value;
switch (cmd)
{
case "doc":
ToolSelected("doc");
break;
case "log":
ToolSelected("log");
break;
case "ini":
ToolSelected("ini");
break;
default:
//nothing;
}
e.selectedIndex = "0";
}
function ChangeText(e,str)
{
document.getElementById(e).innerText = str;
}
</script>
<BODY>
<form id="spx" name="spx">
<TABLE BORDER="0" WIDTH="99%" style="height:200px;">
<TR style="height:20px;">
<TD align="left" width="80%">
Running tasks in <b class="spxBLUE"><span id="timeleft">23</span></B> seconds...
</TD>
<TD align="right" width="30%">
<input type="button" id="stateButton" style="width:55px;" class="spxBTN" value="▎ ▎" onclick="TogglePause()" data-state="ON"><!-- ▌ ▌ -->
<select style="width:100px;display:none;" id="delay" class="spxSELECT">
<option value="stop">Stop</option>
<option value="5">5</option>
<option value="10" selected>10</option>
<option value="30">30</option>
<option value="60">60</option>
</select>
</TD>
</TR>
<TR style="height:120px;">
<TD colspan="2">
<DIV id="SPXconsole" class="SPXconsole">
Howdy! Now, let's wait for the first execution cycle... <span class="spxERR">This is error</span>
<BR><BR><BR><BR><BR><BR><BR>
</DIV>
</TD>
</TR>
<TR>
<TD ALIGN="left">
<small>
<table cellpadding=2>
<TR><TD>Started</TD><TD><SPAN ID="started">09.07.1970 09:00</span></TD></TR>
<TR><TD>Completed</TD><TD><SPAN ID="completed" class="spxBLUE">0</span></TD></TR>
<TR><TD>Failed</TD><TD><SPAN ID="failed" class="spxBLUE">0</span></TD></TR>
</table>
</small>
</TD>
<TD ALIGN="center">
<select class="spxSELECT" style="width:100px; margin-bottom: 5px;" id="toolsDropdown" onchange="SPX_Tools()">
<option value=""></option>
<option disabled> </option>
<option value="spx">Visit SmartPX.fi</option>
<option disabled> </option>
<option disabled>Commands</option>
<option value="doc">▹ Documentation...</option>
<option value="log">▹ Open log file...</option>
<option value="ini">▹ Edit config.ini...</option>
</select>
<small><B>© 2020 SmartPX</B></small><BR>
<small>13.01.2020 12:26</small><BR>
</TD>
</TR>
</TABLE>
</form>
</body>
</html>