4

我有这个程序来读取[code].txt文件,根据textBox. 现在,我输入代码并搜索文件。

但我想使用读取数据矩阵代码作为textBox.

基本上,我需要我的程序来读取数据矩阵代码并使用它来搜索文件。

那可能吗?我不会使用键盘编写代码,而是使用 DataMatrix 阅读器......

如果是这样,你有什么我可以用来做的提示吗?

4

1 回答 1

1

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.

于 2012-10-29T20:39:03.537 回答