?
Solved

Capture keystrokes in background

Posted on 2008-10-28
2
Medium Priority
?
1,151 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 1000 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] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
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…
Suggested Courses

762 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