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

条码扫描器接口编程

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

代码说明:

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

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

发表评论

0 个回复

  • switching.power.documentation
    开关电源设计高级开发文档资料High switching power supply design development documentation (High switching power supply design development documentation )
    2011-01-15 15:31:17下载
    积分:1
  • dmyectiotwo
    W2kPrintDrvSample Feature Support two page directio
    2017-05-11 12:50:38下载
    积分:1
  • util
    几个通用过程,包括内存拷贝,移动和其他操作的例子(Several generic process, including the memory copy, mobile and other operations example)
    2003-09-07 12:27:55下载
    积分:1
  • 79952340
    一种OFDMA低复杂度的比例资源分配策略仿真程序,C语言编程的()
    2018-04-20 15:50:02下载
    积分:1
  • Go-ICP_V1.3
    Go ICP for the registration of point couds
    2017-03-06 23:42:41下载
    积分:1
  • cputime
    此程序主要用于计算算法中CPU运行时间的长短,这样可以判断算法的优劣(This procedure the main algorithm used to calculate the CPU to run the length of this algorithm can determine the merits of)
    2009-02-24 16:29:38下载
    积分:1
  • oead
    Source code 按i2c时序读写寄存器(Source code read and write registers according to i2c sequence)
    2018-12-26 09:48:34下载
    积分:1
  • UAVPlatform0223
    osg地图,在vs2010和qt5上面搭建地图软件框架(Osg map, in the vs2010 and qt5 above the map software framework)
    2017-03-06 17:05:36下载
    积分:1
  • C# CPUTemperature 实例源码下载
    C# CPUTemperature 实例源码下载
    2015-02-05下载
    积分:1
  • pigdjas67
    说明:  By throwing an exception to indicate the occurrence of an error(By throwing an exception to indicate the occurrence of an erro)
    2018-12-25 13:29:14下载
    积分:1
  • 696524资源总数
  • 103939会员总数
  • 12今日下载