473,400 Members | 2,163 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,400 software developers and data experts.

USB Barcode Scanner

Jay
I have a barcode scanner with a USB interface. It acts as a keyboard (ie if I scan a barcode, it is
placed at the text cursor as if I'd typed it on the keyboard).

I'd like to bypass this behaviour so barcodes don't go to the text cursor, but instead go into my C#
programme, even if it doesn't have focus.

How do I do this? I somehow need to re-asign its output to my C# programme.
Jan 31 '07 #1
2 5682

Two possibilities. If the barcode scanner is configurable to the
point where you can prepend any barcodes with a keystroke like
windows-b then you can set up a global hook to listen for this
keystroke and then presumably read the rest of the data.

Or if the barcode scanner manufacturer provides an SDK to interact
with it through another API (not the keyboard) then you can use that
directly (although it ties you to a particular brand).

HTH,

Sam
------------------------------------------------------------
We're hiring! B-Line Medical is seeking Mid/Sr. .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On Wed, 31 Jan 2007 22:03:52 -0000, "Jay" <-wrote:
>I have a barcode scanner with a USB interface. It acts as a keyboard (ie if I scan a barcode, it is
placed at the text cursor as if I'd typed it on the keyboard).

I'd like to bypass this behaviour so barcodes don't go to the text cursor, but instead go into my C#
programme, even if it doesn't have focus.

How do I do this? I somehow need to re-asign its output to my C# programme.
Feb 1 '07 #2
Jay
Thanks for your help Samuel,

Isn't there any way to "talk" directly to a USB device, in the same way that you can talk to a
serial-port device. I assumed that since USB is a fairly recent and current standard, there would be
plenty of OS API support for it.

Jay

"Samuel R. Neff" <sa********@nomail.comwrote in message
news:71********************************@4ax.com...

Two possibilities. If the barcode scanner is configurable to the
point where you can prepend any barcodes with a keystroke like
windows-b then you can set up a global hook to listen for this
keystroke and then presumably read the rest of the data.

Or if the barcode scanner manufacturer provides an SDK to interact
with it through another API (not the keyboard) then you can use that
directly (although it ties you to a particular brand).

HTH,

Sam
------------------------------------------------------------
We're hiring! B-Line Medical is seeking Mid/Sr. .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On Wed, 31 Jan 2007 22:03:52 -0000, "Jay" <-wrote:
>I have a barcode scanner with a USB interface. It acts as a keyboard (ie if I scan a barcode, it is
placed at the text cursor as if I'd typed it on the keyboard).

I'd like to bypass this behaviour so barcodes don't go to the text cursor, but instead go into my
C#
programme, even if it doesn't have focus.

How do I do this? I somehow need to re-asign its output to my C# programme.

Feb 2 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: CHANGE username to westes | last post by:
What are the most popular, and well supported, libraries of drivers for bar code scanners that include a Visual Basic and C/C++ API? My requirements are: - Must allow an application to be...
8
by: DS | last post by:
Does anyone know anything about barcodes in Access. I don't want to create them in Access. I merely want to scan whats already been created. I need to scan Liquor bottles. I have the scanner...
1
by: Darren Coleman | last post by:
I need help with 2 keyboard/input questions 1. How do i caputre all keypress events for my application/form? 2. How do I determine which keyboard sent the keypress? What i'm doing is using a...
6
by: Samuel Shulman | last post by:
I would like to add barcode functionality to my POS program How does one attach barcode reader is it usually USB port How can the program get the data read by the device Thank you, Samuel
4
by: djbaker | last post by:
Greetings, I would like to integrate a barcode scanner into the current project I am working on. I have been looking around teh web and with the exception of embeded devices I cannot find many...
7
by: Alper Ozgur | last post by:
Hi; How can i capture and decode the barcode that reading by an usb Barcode reader?
2
by: nmrpa91290 | last post by:
Hi, I am in the design phase of building a database that will track the productivity of my warehouse. I am thinking of using a barcode scanner to assist me with this. Employees will hopefully...
2
by: chris_gpf1 | last post by:
Hi, I'm working on a website where the user will have to scan a barcode with a serial barcode scanner. I get the scanner working and reading the barcode, but when I want to write the string in...
7
by: jim | last post by:
I need to have 2 simple barcode reader applications finished by midnight tonight. I have never written any barcode reader software and need any help that you may be able to offer. I do not know...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.