SoftTrigger

Sets or retrieves the state of the soft trigger feature of a scanner. The soft trigger is a common feature that enables a scanner laser through software, rather than through a trigger button.

To

Use

Retrieve the state of the soft trigger feature

Syntax 1 For retrieving the soft trigger state

Set the state of the soft trigger feature

Syntax 2 For setting the soft trigger state


Syntax 1 For retrieving the soft trigger state

Description

Retrieves the soft trigger state of a scanner.

Applies to

BarcodeScanner

Syntax

Boolean scannerobject.SoftTrigger ( )

Argument

Description

scannerobject

The name of the bar code scanner object

Returns

Boolean. Value are:

Examples

Example 1

The following example returns the state of the soft trigger feature of the scanner asscociated with the BarcodeScanner object l_scanner:

lb_softstate = l_scanner.SoftTrigger()


Syntax 2 For setting the soft trigger state

Description

Sets the soft trigger state of a scanner.

Applies to

BarcodeScanner

Syntax

Integer scannerobject.SoftTrigger ( newState )

Argument

Description

scannerobject

The name of the bar code scanner object

newState

Boolean value that is used to set the soft trigger state

Returns

Integer. Returns 1 for success or one of the following negative values if an error occurs:

Examples

Example 2

The following example turns off the soft trigger feature of the scanner asscociated with the BarcodeScanner object l_scanner:

li_rtn = l_scanner.SoftTrigger(false)