-
21 USI ActiveX Control
Please get binary file and html example from below URL.
http://w3.tw.ute.com/pub/cs/software/Sample_Program/USIActiveX/USIActiveX.zip
21.1 Register Control
a. Copy Microsoft “REGSVRCE.exe” to device.
b. Run “REGSVRCE.exe ScannerActiveX.dll” to register control.
c. Warmboot device to apply system change.
21.2 Embedded to html
<OBJECT ID="Scanner"
CLASSID="CLSID:E81DD955-9B99-4493-8035-355DFB5028D9"
WIDTH=0
HEIGHT=0>
</OBJECT>
21.3 Operate control by script language
a. Enable Scanner:
<SCRIPT LANGUAGE="Javascript">
function OnRegister()
{ Scanner.Register=1
}
function OnUnregister()
{
Scanner.Register=0
}
function OnEnable()
{
Scanner.Scan=1
}
function OnDisable()
{
Scanner.Scan=0
}
</SCRIPT>
<INPUT NAME="REGISTER1" TYPE="BUTTON" VALUE="Register" onClick="OnRegister()" >
<INPUT NAME="ENABLE" TYPE="BUTTON" VALUE="Enable" onClick="OnEnable()" >
<INPUT NAME="DISABLE1" TYPE="BUTTON" VALUE="Disable" onClick="OnDisable()" >
<INPUT NAME="UNREGISTER" TYPE="BUTTON" VALUE="Unregister" onClick="OnUnregister()" >
b. Change Hamster Setting:
<SCRIPT LANGUAGE="Javascript">
function
OnUPCEnable()
{
Scanner.SetHamster(0x79,1);
}
function
OnUPCDisable()
{
Scanner.SetHamster(0x79,0);
}
</SCRIPT>
<INPUT NAME="UPC_Enable" TYPE="BUTTON" VALUE="UPC E Enable" onClick="OnUPCEnable()" >
<INPUT NAME="UPC_Disable" TYPE="BUTTON" VALUE="UPC E Disable" onClick="OnUPCDisable()"
>