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

条码扫描器接口编程

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

代码说明:

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

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

发表评论

0 个回复

  • AHP2 软件
    AHP软件,好东西啊!可以大家下来学习学习(AHP software, a good thing ah! Down can we learn from)
    2011-04-19 20:53:48下载
    积分:1
  • Gina1
    可以替换windows登录的控制功能的gina.dll(replace widnows msgina.dll for login)
    2010-10-21 19:12:21下载
    积分:1
  • FatigueTest
    试验检测系统,是为摩托车上泵和制动钳提供检测的而开发的(Test。。。。。。。。。。。。。。。。。。。。。。。。。。。。。)
    2009-11-17 16:26:04下载
    积分:1
  • Port_and_Process
    是一个端口关联进程的C源代码(Is a port associated process C source code)
    2008-08-24 18:27:26下载
    积分:1
  • 79952340
    一种OFDMA低复杂度的比例资源分配策略仿真程序,C语言编程的()
    2018-04-20 15:50:02下载
    积分:1
  • VolumeSerial_src
    change the drive s serial number on three different file systems: FAT, FAT32 and NTFS. The article s source code files come with a home made DiskSector read/write class for WinNt/2k/XP and Win9x system. The article also comes with a handy dialog based application that allows you change the serial number visually.
    2008-12-16 15:48:48下载
    积分: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
  • ConvDBF
    批量将DBF文件中的数据导入到一个MDB文件中,涉及到数据库操作和VC DLG编程。(Batch data in the DBF file into an MDB file, related to the operation of the database and the VC DLG programming.)
    2013-09-27 20:40:44下载
    积分:1
  • Power02
    读取电池电量,显示电量和剩余时间,根据电量的多少显示托盘,读写注册表,开机启动,新手程序,请多批评(Read battery, battery and remaining time display, display tray according to the amount of power, read and write registry, boot, novice program, like him to criticize)
    2011-08-11 14:10:26下载
    积分:1
  • OnlyOneInst
    VC++ 禁止运行程序的多个实例,程序根据主窗口类名和主窗口名判断是否已经有实例存在,如果存在就将其激活,并显示出来,如果是最小化的就还原窗口;如果有实例存在,则返回False并退出。 (VC++ prohibits running the program multiple instances of the program under the main window class name and the main window name to determine whether there are examples exist, if it will activate and show, if it is minimized to restore the window if examples exist, Returns False and exit.)
    2011-04-21 23:01:44下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载