Solved

Capture keystrokes in background

Posted on 2008-10-28
2
1,141 Views
Last Modified: 2012-05-05
I am trying to write a program that will capture data from a USB barcode scanner (in keyboard wedge mode) while running minimized. I've found several different chunks of code, most for VB6, but none of them have worked for me.
0
Comment
Question by:Tharo_Systems
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 250 total points
ID: 22823331
So you are working in VB.Net 2005?

In Keyboard Wedge Mode, the barcode data will look like any other keystrokes being typed by the user.  Is your scanner setup to send a special sequence before the barcode so that you will know when one is being sent?

If so, we can use a low level keyboard hook to look for the sequence and then capture the next XXX keystrokes...assuming that all of your barcodes are the same length.  If not, then you would need a beginning AND ending special keystroke to be able to recognize the barcode.

If no special keystrokes are being used then it becomes very difficult and clunky to do this...
0
 

Author Closing Comment

by:Tharo_Systems
ID: 31510719
I appreciate your response. Considering what you've said, I think I will go about it a different way. Thanks!
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question