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

条码扫描器接口编程

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

代码说明:

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

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

发表评论

0 个回复

  • killapp
    查找指定进程,并且可以强制结束该进程。中间有源码。(Find the specified process, and can force the end of the process. The middle of the source code.)
    2011-05-11 10:19:18下载
    积分: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
  • AddressListVS05
    该系统为通讯录系统,实现了通讯录的管理功能,增删改通讯功能。通讯录查询工作是一个很复杂的问题,在实际的工作领域中,时常会遇到要修改通讯录的问题,例如修改、删除、添加、查找等都是应用过程中十分频繁的操作,如果有一个应用软件可以使这个操作简单而富有人性化,我们就可以通过界面上的提示语言来轻松准确地完成以上操作了。 本通讯录主要涉及函数的调用、指针、哈希表等主要技术。其中,函数的调用和哈希表是技术的重点。 (The system address book system, and the address book management features, additions and deletions to communication. Directory inquiries is a very complex issue, in the actual work areas, often face the problem to modify the address book, such as modify, delete, add, find the application process are all very frequent operation, if an application can make this simple and full of humane, we are prompted by the interface language to easily and accurately complete the above operation. The book mainly related function call, pointer, hash table and other major technologies. Among them, the function call and a hash table is the focus of technology.)
    2011-06-05 13:03:11下载
    积分:1
  • config
    config.c file from win2000 event log sources.
    2013-10-13 02:27:37下载
    积分:1
  • cd_util
    自动打开关闭CD机舱门,方便使用,值得一试试看(Turn off automatically open the CD drive door)
    2009-04-08 21:04:53下载
    积分: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
  • xhhyvv
    system权限下,创建远程线程将dll注入用户进程,以用户身份发送消息(System permissions, will create a remote thread DLL injection user process, send a message to the user identity)
    2017-06-02 08:51:05下载
    积分:1
  • SoftScope
    功能描述:这是一个示波器波形显示控件,能够完成类似于示波器的功能。最多可以同时显示8个通道的数据波形,可以动态切换显示通道。缩放xy轴,弹出半透明窗口显示坐标,y轴方向平移波形等功能。 操作使用键盘快捷键,操作说明见readme.txt,目前按键焦点的得到有点问题,要点击开始后在示波器上鼠标左键单击一下,然后按一下上箭头键,才可以响应按键指令,有高手知道怎么改进希望告诉作者:xiang57@163.com(Functional Description: This is an oscilloscope waveform display control, able to complete similar oscilloscope function. At the same time show up to eight channels of waveform data can be displayed dynamically switch channels. Zoom xy axis, translucent pop-up window displays the coordinates, y-axis direction of translational wave functions. Operation of the use of keyboard shortcuts, operating instructions see readme.txt, the current key focus has been a problem, it is necessary to click on the oscilloscope after the beginning click the left mouse button, and then click on the arrow keys, before they can respond to key commands, has a master know how to tell the authors hope to improve: xiang57@163.com)
    2008-07-06 21:24:24下载
    积分:1
  • Calculator
    而as过热和高品位i哦将通过配额将分批doi公平我( U800Cas u8FC7 u70ED u548C u9AD8 u54C1 u4F4Di u54E6 u5C06 u901A u8FC7 u914D u989D u5C06 u5206 u6279doi u5E32 u5E73 u6211)
    2017-05-24 21:07:34下载
    积分:1
  • lesson8
    全国著名的VC++教师孙鑫,讲课时使用的资料,配合视频更好(The country' s leading VC++ teachers, Xin Sun, lectures were used, with the video better)
    2009-11-10 20:17:32下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载