How to get data from a barcode scanner in Firemonkey / Delphi

Application development on Delphi Tokyo, Lanchang U8000S device ( http://www.itlecom.com/ProductsDetails.asp?id=1 ) when creating the form that I use:

VKAutoShowMode := TVKAutoShowMode.never;

to disable the show virtual keyboard when you enter the TEdit component and other input components as an example, because you can enter many inputs in an application using a barcode scanner or a numpad hardware keyboard. The scanner configuration that I set to the emulation mode of the keyboard, and after emulating the scan. Press Enter.

http://www.lckj.cn/Upload/U8000S_Scan_API.pdf

I use:

setOutScanMode(1);//keyboard emulation
setScanCodeEnterKey(true);// Additional enter key after the scan results. 

The problem is that you launch the application and put the cursor and focus in one component TEditand scan the barcode, you get nothing with an empty key with the enter key, but if you call the virtual keyboard and just close it after opening, then the scanner works fine, and you get the results! And at the same time, when the scanner is not transmitting data, the numpad keyboard on the device works fine. But then you work in the application, changing tricks, and then again return to some edits, again, the input from the scanner does not work.

, VKAutoShowMode := TVKAutoShowMode.never;, , , , , , !!!

, :

setOutScanMode(0) // Broadcast output mode. 

, , !?

, - , !?

+4
1

- Android, , - "Intents". Delphi , C:\Users\Public\Documents\Embarcadero\Studio\20.0\Samples\Object Pascal\Mobile Snippets\AndroidIntents. Android. ( ) Rio 10.3 http://www.delphifeeds.com/go/s/149394. , .

0

Source: https://habr.com/ru/post/1674454/


All Articles