如何检测条形码扫描仪。 [英] How to detect barcode scanners hit.

查看:104
本文介绍了如何检测条形码扫描仪。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有,

我想设计一个表单,用户可以在其中提供商店中可用的一些列表数据(项目)。我需要检测条形码扫描仪命中,这样我就可以自动打开该表格,即使当时打开了任何
表格,也可以启动扫描仪命中和喂食。任何想法...

I want to design a form, where user could feed some listing data (items) which are available in store. I need to detect a barcode scanners hit, so that I could open that form automatically whenever scanner hit and feeding could be started even though any form is opened at that time. Any idea ...

Reagrds

ShahidSQL(印度)

ShahidSQL (India)

推荐答案

您好ShahidSQL,

Hi ShahidSQL,

首先,您的应用必须运行并读取通过该频道的任何键盘输入。仅供参考,扫描仪发送键盘等数据,因为它们通常位于键盘和PC之间。

first of all, your app will have to run and read any keyboard input that comes over that channel. FYI, scanners send data like keyboards as they usually are placed between keyboard and pc.

现在您的用户可以扫描"开始"条形码,当应用程序在键盘缓冲区中找到"开始"字符串时,您可以启动表单,用户可以开始定期扫描。

Now your users can scan a 'Start' barcode and as soon as you app finds the 'Start' string within the keyboard buffer, you could start the form and users can start regular scanning.

开始代码可能是一个简单的F10而你的应用只需要一个ON KEY LABEL F10表单......

The Start code could be a simple F10 and your app would only need a ON KEY LABEL F10 do form...

请看一下这个链接:

http:// www.idautomation.com/kb/scan_function_keys.html

它显示了如何使用Code39的扩展字符集来完成此操作。

It shows how you can do this with an extended char set for Code39.

JM2C


这篇关于如何检测条形码扫描仪。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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