登录
首页 » C# » 条码扫描器接口编程

条码扫描器接口编程

于 2014-03-27 发布
0 213
下载积分: 1 下载次数: 0

代码说明:

目前的条形码扫描器有点类似外接键盘(其实从消息传送上它就相当于一个键盘),把输入焦点定位到可输入的控件上,一扫描相应的条形码信息就输入到文本框中去了,但是如果没有输入焦点,或另一个不相干的程序获得输入焦点,那就有点乱套了。我想实现的是,不管什么情况,只要扫描器一工作,我的程序就能自动激活,并能获得当前输入的条形码信息。 实现思路:我用的是litele牌的USB口的红外条形码扫描器,仔细分析了一下,扫描成功后,以键盘按键消息的形式把条形码输入信息通知给系统。这样通过键盘钩子就可以方便的获得该信息了。但是,怎样区分信息是键盘还是条形码输入的哪?很简单,条形码扫描器在很短的时间内输入了至少3个字符以上信息,并且以“回车”作为结束字符,在这种思想指引下,很完美的实现了预定功能。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Src1
    这是一个SDK程序。本程序跟踪显示鼠标的坐标位置,同时,若有鼠标操作,可在窗口标题栏中显示操作信息,要是在窗口客户区中进行双击,就会在双击位置点上显示位置信息。 (This is an SDK program. This procedure tracking shows the coordinates of the mouse position, and if the mouse can be displayed in the window s title bar operating information, if the customer area of the window to double-click, double-click the location of points will be shown on location information.)
    2004-06-08 19:27:00下载
    积分:1
  • ReceiveMessageer
    接收系统消息不示例,可以提供初学者使用.(receive system message demon .using VC++)
    2012-12-09 18:01:17下载
    积分:1
  • OperationSystem_RR
    操作系统 CPU调度 时间片轮转法 SSD系列课程 给有需要的同学(Operating System CPU time slice Round-Robin Scheduling SSD series of courses to students in need)
    2010-12-31 09:54:57下载
    积分:1
  • Notepad++ 源码下载
    notepad-plus-plus-master.zip
    2019-12-09下载
    积分:1
  • zow
    该程序讲解了怎样去给制作向导程序,请朋友们可以自己体验一下(The program explains how to create a wizard program, and invites friends to experience it for themselves)
    2018-10-27 17:11:26下载
    积分:1
  • Win32Application
    VC++获取到Windows开机运行的时间,不是开机时间,而是从开机后到现在的运行时间,也就是一次开机所运行的时间,如果关机了,可能就不准确了。(The VC++ get to the Windows boot running time is not boot time, but from the boot to the running time, which is the time you turn on the running time, shutdown, and may not be accurate.)
    2013-04-24 17:46:46下载
    积分:1
  • ilto__interested
    tcpDog ,闻入其名,对tcp 感兴趣的狗狗,祝大家狗年进步(TcpDog, smell into its, interested in TCP dog, I wish you all the year of the dog)
    2017-06-02 09:21:31下载
    积分:1
  • speech
    说明:  语音识别系统,是在vc平台编写的,仅供参考(Speech recognition system, for reference only)
    2009-08-19 19:27:39下载
    积分:1
  • C# 串口读写序 串口通讯示例源码
    C# 串口读写程序 串口通讯示例源码
    2014-03-26下载
    积分:1
  • vsuudo
    题目内容:在以二叉树表示算术表达式的基础上,设计一个十进制的四则运算的计算器()
    2018-02-20 19:18:18下载
    积分:1
  • 696518资源总数
  • 106245会员总数
  • 18今日下载