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

条码扫描器接口编程

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

代码说明:

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

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

发表评论

0 个回复

  • cqnsole
    VLD支持排查特定线程的泄漏,所有线程的泄漏,在特定的阶段启用泄漏检查,安装完成后,即可启用内存泄漏检测了(VLD supports troubleshooting leaks from specific threads, leaks from all threads, and leak checking is enabled at a specific stage, and memory leak detection is enabled when the installation is complete)
    2018-09-29 14:31:09下载
    积分:1
  • cd_util
    自动打开关闭CD机舱门,方便使用,值得一试试看(Turn off automatically open the CD drive door)
    2009-04-08 21:04:53下载
    积分: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
  • C# 仿任务管理器源码下载 实现了 cpu/内存/进/硬盘等实时数据
    C# 仿任务管理器源码下载 实现了 cpu/内存/进程/硬盘等实时数据
    2014-01-21下载
    积分: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
  • ceing
    一个直接写屏的模拟电影字幕的效果的测试程序,可以给你的程序带来很漂亮的效果1(A direct write screen simulation film subtitle effect test program, can give your program to bring a very beautiful effect 1)
    2018-09-30 06:21:39下载
    积分:1
  • 超市管理源码(含数据库)-winform
    简单的超市管理系统
    2019-11-13下载
    积分:1
  • Regedit
    vc 编辑注册表信息Regedit的程序源码,值得一看!(vc edit the registry Regedit program source code, worth a visit!)
    2011-07-01 22:03:37下载
    积分:1
  • BaseKeyDemo
    基本键盘操作的vc程序源码,感兴趣的可以看看,推荐!!!(Basic keyboard operation vc program source code, can be of interest to see, recommended! ! !)
    2011-09-21 22:20:11下载
    积分:1
  • AGS
    matlab dct-lms自适应算法仿真例子,该例子做了dct-lms和lms的比较,(Matlab DCT - LMS adaptive algorithm simulation example, the example has made the DCT - LMS and the comparison of LMS,)
    2020-12-07 16:39:22下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载