我如何可以读取条形码,而无需用户首先关注一个文本框? [英] How can I read barcodes without having the user focus a text box first?

查看:271
本文介绍了我如何可以读取条形码,而无需用户首先关注一个文本框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近收购了捷条形码扫描仪(USB接口),大家都已经知道它可以作为一个键盘模拟器开箱。

I recently acquired a Metrologic Barcode scanner (USB port), as everyone already knows it works as a keyboard emulator out of the box.

我如何配置扫描仪和我的应用程序,使我的应用程序可以直接处理条码数据?也就是说,我不希望用户集中在一个文本字段,然后处理数据时KeyPress事件触发。

How do I configure the scanner and my application so that my app can process the barcode data directly? That is, I don't want the user to focus on a "Text field" and then process the data when the KeyPress event fires.

推荐答案

通常条形码扫描仪可配置前,后弦把一些字符。所以,如果你的条形码字符串前追加例如F12,你可以捕获和移动焦点到右场。

Usually barcode scanners can be configured to send some characters before and after the string. So if you append eg "F12" before the barcode string, you can capture that and move the focus to the right field.

检查条形码扫描仪手动怎么做

Check the barcode scanner manual how to do that.

这篇关于我如何可以读取条形码,而无需用户首先关注一个文本框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆