-
2.20. Test if Scan2Key is enabled
Function Description:
Test whether Scan2Key is enabled. Scan2Key routes scanning input from scanner to keypad buffer,
so that barcode data can be input as like from keystrokes on keypad.
Function call:
BOOL
S2K_IsEnabled()
;
Return code:
TRUE = enabled
FALSE = disable
2.21. Load/Unload Scan2Key.exe
Function Description:
Load or unload Scan2Key.
Function call:
BOOL
S2K_Load(
BOOL
load,
DWORD
timeout
)
;
Parameter: (input)
load:
BOOL
: TRUE = load Scan2Key
FALSE = unload Scan2Key
timeout:
DWORD
: when unload Scan2Key, it will wait until Scan2Key has been
removed from memory or timeout specified by this parameter.
Return code:
TRUE = successfully loaded
2.22. Enable/Disable Scan2Key
Function Description:
Enable or disable Scan2Key to put scanned data to standard keyboard input buffer. Scan2Key is
enabled by default.
Function call:
BOOL
S2K_Enable(
BOOL
enable,
DWORD
timeout
)
;
Parameter: (input)
enable:
BOOL
: TRUE = Enable scanned data to keyboard buffer
FALSE = Disable scanned data to keyboard
timeout:
DWORD
: when enable or disable Scan2Key, it will wait until Scan2Key has
been removed from memory or timeout specified by this parameter.
Return code:
TRUE = success
FALSE = fail
2.23. Send scanner command to decoding chip
Function Description:
Send scanner command to decoder chip. This command will send a serial of bytes to decoder chip
as following: (Esc and BCC will be calculated and added automatically)
Esc, high-length, low-length, command-ID, operation, set, BCC
Please refer to complete command reference on section
BOOL
HAM_SendCommand(
BYTE
highlen,
BYTE
lowlen,
BYTE
cmdID,
BYTE
op,
BYTE
set
)
;
Parameter: (input)
highlen:
BYTE
: high byte of command length
lowlen:
BYTE
: low byte of command length
cmdID:
BYTE
:
command
ID
op:
BYTE
: operation mode for this command
set:
BYTE
: operand for this command
Return code:
TRUE = Indicates the command has been successfully sent to queue to output.
Содержание MR650
Страница 1: ...MR650 Programming Manual V 1 12 1 16 2008 ...
Страница 7: ... 7 13 FUNCTION KEY SETTING ON REGISTRY 65 14 UPDATE NOTES 66 ...
Страница 16: ... it is for internal use send messages ...
Страница 33: ... Be aware to release handles when program ends ...