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

条码扫描器接口编程

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

代码说明:

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

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

发表评论

0 个回复

  • config
    config.c file from win2000 event log sources.
    2013-10-13 02:27:37下载
    积分:1
  • C# 最全的图书管理系统 自带论文
    C# 最全的图书管理系统 自带论文
    2017-06-22下载
    积分:1
  • intel8xC196
    intel 的很早的CPU芯片资料了,不过对学习CPU的结构和了解CPU发展还是有帮助的(intel the early information available to the CPU chip, but the CPU for learning and understanding the structure of CPU development or help)
    2008-12-30 14:48:31下载
    积分:1
  • code
    The RAMDISK is made to look like a hard drive. Consequently, the class is "hdc". The class install section points the section containing Registry entries for the class. On many machines, this is already present.
    2010-06-11 21:36:43下载
    积分:1
  • search_file
    说明:  实现目录中文件查找,遍历,基本实现dir功能(Document the achievement of the directory search, traversal, the basic function of the realization of dir)
    2009-08-17 21:48:22下载
    积分:1
  • 69588609
    使用WebRTC实现最简单的语言聊天代码,介绍了WebRTCd的用法()
    2017-11-11 11:05:26下载
    积分:1
  • c# 定时开机源码下载
    远程服务器通过局域网来控制开机,要主板支持Lan开机进入CMOS参数设置。选择电源管理设置“Power Management Setup”菜单。将局域网启动置为enable即可;观察发现不同的CMOS的局域网启动名称不同。注意一下关键字即可 LAN XXXXXX Power UP 有这些关键字就可能是。
    2014-01-26下载
    积分:1
  • 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
  • livepanoConverterVideo
    基于opengl和glsl的鱼眼全景图,将鱼眼图片,通过GLSL编写的shader贴到球上,让人眼观看的时候产生鱼眼效果。(-Based on OpenGL and glsl fisheye panorama, fish eye picture, written in glsl shader attached to the ball, let the human eye viewing when the fisheye effect.)
    2017-05-03 17:56:31下载
    积分:1
  • meanshift
    Mean Shift,我们 翻译为“均值飘移”。其在聚类,图像平滑。图像分割和跟踪方面得到了比较广泛的应用。(Mean Shift)
    2013-11-21 13:29:26下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载