Startshift, Termcode – MagTek MTKBDWEDGE.OCX User Manual

Page 7

Advertising
background image

Properties

3

STARTSHIFT
Sets or returns the Shift Status to trigger a start of capture for the KbdWedge control.

Syntax

KbdWedge.StartShift[ = Value]

The StartShift property syntax has these parts:

Part

Description

Value

An integer value specifying the Start Shift.

Remarks

StartShift is an integer that corresponds to the state of the SHIFT, CTRL, and ALT keys at the
time of the event. The shift argument is a bit field with the least-significant bits corresponding to
the SHIFT key (bit 0), the CTRL key (bit 1), and the ALT key (bit 2 ). These bits correspond to
the values 1, 2, and 4, respectively. Some, all, or none of the bits can be set, indicating that
some, all, or none of the keys are pressed. For example, if both CTRL and ALT are pressed, the
value of StartShift is 6.

Data Type

Integer



TERMCODE
Sets or returns the KeyCode to trigger an end of capture for the KbdWedge control.

Syntax

KbdWedge.TermCode[ = value]

The TermCode property syntax has these parts:

Part

Description

Value

An integer value specifying the
terminating code.

Remarks

TermCode is a key code, such as ‘13’ (the vbKeyReturn, or Carriage Return key). The default
is 13, which is the carriage return key on the keyboard combined with a StartShift of 0 (the
default value). This identifies that the carriage return key represents the terminating character.

The reader should be configured to terminate its output with a carriage return.

Data Type

Integer





Advertising