Avery Dennison Platinum 6039 JavaScript User Manual
Page 74
4-36 Programmer’s Manual
ScannerMode
Description
Retrieves the current scanner mode data containing the default values
and saves the reconfigured settings to the scan engine.
Syntax
ScannerMode;
Parameters
None
Return Values
SOM_MOMENTARY
The scanner is on when the trigger is pressed and
goes off when the trigger is released.
SOM_CONTINUOUS
The scanner is always on. A good scan causes the
scanner to reset and continue scanning.
SOM_COMPATIBLE
The scanner operates in Monarch® 6037
compatible mode, which means the scanner is on
when the trigger is pressed and goes off after a
successful scan or a predetermined timeout period.
Default
Example
<SCRIPT src="./jsUltra.js"></SCRIPT>
<SCRIPT type="text/javascript">
SCANNER.ScannerMode = SOM_COMPATIBLE;
//
Enable
Compatibility
with
6037
SCANNER.CommitConfigChanges();
//Save Changes to the Scanner Configuration
</SCRIPT>
<BODY>
<OBJECT id=”SCANNER” style="LEFT: 0px; WIDTH: 0px; TOP: 0px;
HEIGHT: 0px"
classid=clsid:
AD3C761C-4BCC-403D-A68D-128ED702A417>
</OBJECT>
//Instantiate
Class
</BODY>