-
2.15. Change scanner setting from specified setting profile
Function Description:
Load and activate the settings from file.
Function call:
BOOL
USI_LoadSettingsFromFile(
LPCTSTR
filename,
BOOL
formulaOnly
)
;
Parameter: (input)
filename:
LPCTSTR
: name of scanner setting profile (*.USI)
formulaOnly:
BOOL
: if TRUE, only data editing formulas are load. The other settings
remain unchanged
Return code:
TRUE = success
FALSE = error
2.16. Automatically enable scanner beam with pressing trigger key
Function Description:
Start auto scanning. Scan engine will be automatically triggerrd on.
Function call:
BOOL
USI_StartAutoScan
(
DWORD
interval
);
Parameter: (input)
interval:
DWORD
: Specifies the interval in milli-second
Note:
USI will call the function SetScannerOn function exported by the DLL defined in the registry
described below (UPI300.DLL is an example) to start and stop the scanner. If the DLL is not defined
or the function is not found, then auto scanning is not available.
[HKEY_LOCAL_MACHINE\SOFTWARE\Unitech America Inc.\Scanner\Settings]
"DLLSCANNERCONTROL"="UPI300.DLL"
The function prototype of SetScannerOn is:
VOID WINAPI SetScannerOn(BOOL fon);
Start when fon is TRUE, and stop when fon is FALSE.
2.17. Stop auto scanning function
Function Description:
Stop auto scanning.
Function call:
void
USI_StopAutoScan
();
2.18. Check if auto scanning is enable
Function Description:
Check if auto scanning function is enabled or not.
Function call:
BOOL
USI_IsAutoScanning
()
Return code:
BOOL:
TRUE
: auto-scanning is running
FALSE
: auto-scanning is disabled
2.19. Check if Scan2Key.exe program is running or not
Function Description:
Test whether Scan2Key application is running at background. (It doesn
'
t mean Scan2Key is
routing scanner input to keyboard, please call S2K_IsEnabled() to check if routing function is enable
or not).
Function call:
HWND
S2K_IsLoaded()
;
Return code:
NULL:
Scan2Key is not running
Non-NULL:
indicates scan2key is running. It actually returns window handle for scan2key, but
Содержание 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 ...