asked on
HW01,#00e600,,VID_1A40
HW02,#00e600,BACKUP DEVICE,WPDBUSENUMROOT
HW03,#00e600,SIGNATURE PAD,VID_2133
HW04,#00e600,CHARGE CONTROLLER,VID_0403
HW05,#ff0000,3G MODEM & GPS,VID_12D1
HW06,#00e600,USB EXTENSION CABLE,VID_1A40
HW07,#ff0000,BARCODE READER,VID_27DD
HW08,#00e600,DOCUMENT SCANNER,VID_1B17
HW09,#ff0000,EXTERNAL KEYBOARD,VID_1997
HW10,#ff0000,FACE CAPTURE CAMERA,VID_1E4E
HW11,#00e600,EVOLIS PRINTER,USBPRINT\EVOLIS_ZENIUS
HW12,#00e600,FINGERPRINT READER,VID_17B9
HW13,,,
HW14,,,
<!DOCTYPE html>
<html>
<head>
<title>Platform</title>
<meta http-equiv="x-ua-compatible" content="IE=8">
<meta http-equiv="Content-Script-Type" content="text/vbscript">
<meta name=VI60_defaultClientScript content=javascript/>
<HTA:APPLICATION
ID="objScreen"
APPLICATIONNAME="EE-Dev"
BORDERSTYLE="dialog"
/>
<Script Language="VBScript">
Sub Window_OnLoad
' Refresh data from HWstatus file
CheckHWStatusFile
' Set up a timer event so we can update the screen periodically
iTimerID = window.setInterval("myVBSClock", 1000)
End Sub
Sub myVBSClock
' Update current time
myClock.innerText = Now()
' Refresh colors from HWstatus file
CheckHWStatusFile
End Sub
Sub CheckHWStatusFile
' Constants for file I/O
Const ForReading = 1
Const ForWriting = 2
Const TriStateUseDefault = -2
' Name of HWstatus file
strHWStatusFile = "HWStatus.txt"
' Create file system object
Set objFSO = CreateObject("Scripting.FileSystemObject")
' Make sure HWstatus file exists
If objFSO.FileExists(strHWStatusFile) Then
' Open it for reading
Set objHWStatusFile = objFSO.OpenTextFile(strHWStatusFile, ForReading, False, TriStateUseDefault)
' Read HWstatus file, split lines into array elements
arrHWStatus = Split(objHWStatusFile.ReadAll, vbCrLf)
' Close file, release objects
objHWStatusFile.Close
Set objHWStatusFile = Nothing
Set objFSO = Nothing
' Process each line of the HWstatus file (skip blank lines)
For Each strHWStatus in arrHWStatus
If strHWStatus <> "" Then
' Split HWstatus line into array at comma
arrField = Split(strHWStatus, ",")
' Process lines based on first field on line (item name to update), and set item color to HWstatus file value
Select Case arrField(0)
Case "HW01"
HW01.style.background = arrField(1)
Case "HW02"
HW02.style.background = arrField(1)
Case "HW03"
HW03.style.background = arrField(1)
Case "HW04"
HW04.style.background = arrField(1)
Case "HW05"
HW05.style.background = arrField(1)
Case "HW06"
HW06.style.background = arrField(1)
Case "HW07"
HW07.style.background = arrField(1)
Case "HW08"
HW08.style.background = arrField(1)
Case "HW09"
HW09.style.background = arrField(1)
Case "HW10"
HW10.style.background = arrField(1)
Case "HW11"
HW11.style.background = arrField(1)
Case "HW12"
HW12.style.background = arrField(1)
End Select
End If
Next
End If
End Sub
</SCRIPT>
</head>
<BODY TOPMARGIN="0px" RIGHTMARGIN="0px" LEFTMARGIN="0px">
<SPAN
id="HW01"
style="
cursor: default;
top: 42%;
left: 2%;
width: 1.8%;
height: 35.5%;
position: fixed;
z-index: 4;
visibility: show;
border-style: solid;
border-width: 1px;
border-color: #6d6d6d;
background: #5d5d5d;">
<div style="padding-left: 30px; color: #515151;font-family: Arial;font-size: 20px;">
</div>
</SPAN>
<SPAN
id="HW02"
style="
cursor: default;
top: 42%;
left: 5%;
width: 1.8%;
height: 3.2%;
position: fixed;
z-index: 4;
visibility: show;
border-style: solid;
border-width: 1px;
border-color: #6d6d6d;
background: #5d5d5d;">
<div style="padding-left: 30px; color: #515151;font-family: Arial;font-size: 20px;">
BACKUP DEVICE
</div>
</SPAN>
<SPAN
id="HW03"
style="
cursor: default;
top: 46%;
left: 5%;
width: 1.8%;
height: 3.2%;
position: fixed;
z-index: 4;
visibility: show;
border-style: solid;
border-width: 1px;
border-color: #6d6d6d;
background: #5d5d5d;">
<div style="padding-left: 30px; color: #515151;font-family: Arial;font-size: 20px;">
SIGNATURE PAD
</div>
</SPAN>
<SPAN
id="HW04"
style="
cursor: default;
top: 50%;
left: 5%;
width: 1.8%;
height: 3.2%;
position: fixed;
z-index: 4;
visibility: show;
border-style: solid;
border-width: 1px;
border-color: #6d6d6d;
background: #5d5d5d;">
<div style="padding-left: 30px; color: #515151;font-family: Arial;font-size: 20px;">
CHARGE CONTROLLER
</div>
</SPAN>
<SPAN
id="HW05"
style="
cursor: default;
top: 54%;
left: 5%;
width: 1.8%;
height: 3.2%;
position: fixed;
z-index: 4;
visibility: show;
border-style: solid;
border-width: 1px;
border-color: #6d6d6d;
background: #5d5d5d;">
<div style="padding-left: 30px; color: #515151;font-family: Arial;font-size: 20px;">
3G MODEM & GPS
</div>
</SPAN>
<SPAN
id="HW06"
style="
cursor: default;
top: 58%;
left: 5%;
width: 1.8%;
height: 3.2%;
position: fixed;
z-index: 4;
visibility: show;
border-style: solid;
border-width: 1px;
border-color: #6d6d6d;
background: #5d5d5d;">
<div style="padding-left: 30px; color: #515151;font-family: Arial;font-size: 20px;">
USB EXTENSION CABLE
</div>
</SPAN>
<SPAN
id="HW07"
style="
cursor: default;
top: 62%;
left: 5%;
width: 1.8%;
height: 3.2%;
position: fixed;
z-index: 4;
visibility: show;
border-style: solid;
border-width: 1px;
border-color: #6d6d6d;
background: #5d5d5d;">
<div style="padding-left: 30px; color: #515151;font-family: Arial;font-size: 20px;">
BARCODE READER
</div>
</SPAN>
<SPAN
id="HW08"
style="
cursor: default;
top: 66%;
left: 5%;
width: 1.8%;
height: 3.2%;
position: fixed;
z-index: 4;
visibility: show;
border-style: solid;
border-width: 1px;
border-color: #6d6d6d;
background: #5d5d5d;">
<div style="padding-left: 30px; color: #515151;font-family: Arial;font-size: 20px;">
DOCUMENT SCANNER
</div>
</SPAN>
<SPAN
id="HW09"
style="
cursor: default;
top: 70%;
left: 5%;
width: 1.8%;
height: 3.2%;
position: fixed;
z-index: 4;
visibility: show;
border-style: solid;
border-width: 1px;
border-color: #6d6d6d;
background: #5d5d5d;">
<div style="padding-left: 30px; color: #515151;font-family: Arial;font-size: 20px;">
EXTERNAL KEYBOARD
</div>
</SPAN>
<SPAN
id="HW10"
style="
cursor: default;
top: 74%;
left: 5%;
width: 1.8%;
height: 3.2%;
position: fixed;
z-index: 4;
visibility: show;
border-style: solid;
border-width: 1px;
border-color: #6d6d6d;
background: #5d5d5d;">
<div style="padding-left: 30px; color: #515151;font-family: Arial;font-size: 20px;">
FACE CAPTURE CAMERA
</div>
</SPAN>
<SPAN
id="HW11"
style="
cursor: default;
top: 78%;
left: 5%;
width: 1.8%;
height: 3.2%;
position: fixed;
z-index: 4;
visibility: show;
border-style: solid;
border-width: 1px;
border-color: #6d6d6d;
background: #5d5d5d;">
<div style="padding-left: 30px; color: #515151;font-family: Arial;font-size: 20px;">
EVOLIS PRINTER
</div>
</SPAN>
<SPAN
id="HW12"
style="
cursor: default;
top: 82%;
left: 5%;
width: 1.8%;
height: 3.2%;
position: fixed;
z-index: 4;
visibility: show;
border-style: solid;
border-width: 1px;
border-color: #6d6d6d;
background: #5d5d5d;">
<div style="padding-left: 30px; color: #515151;font-family: Arial;font-size: 20px;">
FINGERPRINT READER
</div>
</SPAN>
<SPAN
STYLE="
cursor:default;
bottom: -1%;
right: 1.5%;
position: fixed;
z-index: 4;
text-align: right;
color: #515151;
font-family: Arial;
font-size: 15px;
font-weight: bold;
visibility: show;">
<PRE ID=myClock>
</PRE>
</SPAN>
</BODY>
</HTML>