質問

I have this program to read [code].txt files, according to what is the input on a textBox. For now, I type the code and make the search for the files.

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

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

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

If so, do you have any tips that I could use to do it?

役に立ちましたか?

解決

The most tightly integrated approaches are generally specific to each reader type (they have different APIs), but most readers have a mode where they emulate keyboard input, with optional delimiters at the end of the text. If you make your GUI respond to the 'Enter' key within the text entry field as the same as pressing 'Submit' (or whatever else fires off the file reading in your application), then you can bring in most code readers transparently and still support keyboard interaction in the same way.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top