Using DataMatrix Code as Keyboard Input

I have this program for reading the [code].txt files, according to what is the input to the textBox . While I type in the code and search for files.

But I want to use data matrix code reading as the input of this textBox .

Basically, I need my program to read the data matrix code and use it to search for files.

Is it possible? Instead of using a keyboard to write code, I would use a DataMatrix reader ...

If so, do you have any tips that I could use for this?

+4
source share
1 answer

The most tightly integrated approaches are usually specific for each type of reader (they have different APIs), but most readers have a mode in which they emulate keyboard input, with additional separators at the end of the text. If you make your GUI the answer to the 'Enter' key in the text input field in the same way as pressing Submit (or whatever, if you disable reading the file in your application), then you can use most code readers transparently and still support keyboard interaction as well.

+1
source

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


All Articles