键盘模拟条码阅读器
我正在使用 Microsoft.PointOfService 库与 POS 硬件交互。尽管有关兼容硬件的文档很少,但我在一些地方读到所有模拟条形码扫描仪的键盘都应该兼容。
所以现在我有了条码扫描仪(Wasp WSR-455),它可以模拟键盘,我想知道这里是否有人知道如何让 posdm 工具识别它,或者我可以针对 barcodeScanned事件。
DR
I'm using the Microsoft.PointOfService libraries to interact with POS hardware. Although documentation about compatible hardware is thin on the ground, I've read in places that all keyboard emulating barcode scanners should be compatible.
so now I have my barcode scanner (Wasp WSR-455), which emulates the keyboard, and I was wondering if anybody here knows how to make the posdm tool recognise it, or another way I can program against a barcodeScanned
event.
D.R
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当他们模拟键盘时,你不必为此烦恼,也不能。您或用户必须确保焦点始终位于特定文本框上,以便扫描仪输出到达正确的位置。这肯定会消除用户界面的很大灵活性,您确实需要一个可以直接通过 USB 端口连接的扫描仪。它们通常模拟串行端口,您可以使用 SerialPort 类。
You don't bother with that, nor can you, when they emulate a keyboard. Either you or the user has to make sure the focus is always on a specific text box so the scanner output goes to the right place. This certainly removes a great deal of flexibility in your UI, you'd really do need a scanner that you can connect to directly over, say, a USB port. They usually emulate a serial port, you'd use the SerialPort class.