Solved

Capture keystrokes in background

Posted on 2008-10-28
2
1,102 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
2 Comments
 
LVL 85

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

746 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now