我有2个条形码扫描仪,一个USB和另一个PS2连接到1台PC并使用1个文本框 [英] I have 2 bar code scanner one usb and the other ps2 connected to 1 PC and working with 1 text box

查看:104
本文介绍了我有2个条形码扫描仪,一个USB和另一个PS2连接到1台PC并使用1个文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个条形码扫描仪,一个USB和另一个ps2连接到1台PC,并使用1个文本框.现在,我想区分扫描仪,并确定哪个扫描仪正在将数据发送到我的文本框中.

每个人都可以通过代码帮助我或提供建议吗?

谢谢

I have 2 bar code scanner one usb and the other ps2 connected to 1 PC and working with 1 text box. Now I want to distinguish between scanners and determine which one is sending data to my text box.

Can everyone help me with a code or advise in c#?

Thank you

推荐答案

不知道条形码扫描仪是什么的答案是一种猜测,但我的猜测是,用于访问条形码扫描仪的任何API都会因型号/制造商/接口或扫描仪ID应可从制造商提供的API中获得.

因此,实际上是通过API接口查看哪些信息可用,以确定哪个扫描程序提供了该信息.
Without knowing what the barcode scanners are any answer will be a guess but my guess is that any API to access a barcode scanner will differ based on model/maker/interface or the scanner ID should be available from the API supplied by the manufacturer.

So really it is a matter of looking at what information is available via the API interface to determine which scanner provided the information.


这篇关于我有2个条形码扫描仪,一个USB和另一个PS2连接到1台PC并使用1个文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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