Avery Dennison Platinum 6039 JavaScript User Manual
Page 77
Scanning Functions 4-39
TriggerMode
Description
Sets the trigger mode configuration values the application set.
Syntax
TriggerMode;
Parameters
TriggerMode
The supply type. Values are
TM_SCAN
Pressing the trigger turns on the
scanner.
TM_DROP
The printer ignores the trigger press
and does not turn on the scanner.
TM_FORWARD
The printer passes the trigger press
to the application as an F4, allowing
more control of the application. You
can code a custom application to
perform a special function whenever
it receives an F4. Default
Return Values
None
Example
<SCRIPT src="./jsUltra.js"></SCRIPT>
<SCRIPT type="text/javascript">
SCANNER.TriggerMode = TM_SCAN;
//
Enable
scanning
by
trigger
SCANNER.CommitConfigChanges();
//Save
Changes
to
the
Scanner
Configuration
<BODY>
<OBJECT id=”SCANNER” style="LEFT: 0px; WIDTH: 0px; TOP: 0px;
HEIGHT:
0px"
classid=clsid:
AD3C761C-4BCC-403D-A68D-128ED702A417>
</OBJECT>
//Instantiate
Class
</BODY>