473,508 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Barcode Reader Application -- HELP

Hi all,

I have an application that uses input from a barcode reader via a USB
port. My application works fine only if the application HAS FOCUS.
If the user opens up another application (not mines) such as
notepad/word, etc, the Barcode Reader reads data into the applicaton
that currently has focus with is notepad/word but not my own
applicaton.

My question is as follows: Is there a way to write a Listener
Class/Windows Service to ALWAYS direct the Data that the barcode reader
reads in into my own application even though it does not have focus?

The reason that i'm doing this is to be able to provide 2 users using
the same machine...One user used the BarCode Scanner and the other
person can still use the computer to work on aother applications.

Much Thanks,
Neil

Feb 15 '06 #1
5 5418
<ne******@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi all,

I have an application that uses input from a barcode reader via a USB
port. My application works fine only if the application HAS FOCUS.


No help here... just mentioning that "who ever" wrote the interface for that
utility/driver was a complete nut and it probably came from the same place
the VB6 version did... which worked the exact same way. Silly. Thankfully,
I've only had to "read" about the problems instead of actually experiencing
them (wonder if the author of that utility/driver ever heard the term
"multi-tasking")

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..
Feb 15 '06 #2
I think you use the barcode-keyboard-emulator which sends the barcodes as
keystrokes to the active application.

What you need is a dll which gives you events when a barcode is scanned.
Look for a SDK for your scanner.

Best regards
Kay

<ne******@gmail.com> skrev i melding
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi all,

I have an application that uses input from a barcode reader via a USB
port. My application works fine only if the application HAS FOCUS.
If the user opens up another application (not mines) such as
notepad/word, etc, the Barcode Reader reads data into the applicaton
that currently has focus with is notepad/word but not my own
applicaton.

My question is as follows: Is there a way to write a Listener
Class/Windows Service to ALWAYS direct the Data that the barcode reader
reads in into my own application even though it does not have focus?

The reason that i'm doing this is to be able to provide 2 users using
the same machine...One user used the BarCode Scanner and the other
person can still use the computer to work on aother applications.

Much Thanks,
Neil

Feb 15 '06 #3
Generally barcode scanners can be configured to send an ascii control code
at the start and or the end of a scanning sequence (Check the user manual)
what you have to do is write a global keyboard message hook to watch the
beginniing and ending characters of a scan (And capture all in between). An
example of vb code for a keyboard hook can be found here
http://www.freevbcode.com/ShowCode.asp?ID=728
Steve Hall
<ne******@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi all,

I have an application that uses input from a barcode reader via a USB
port. My application works fine only if the application HAS FOCUS.
If the user opens up another application (not mines) such as
notepad/word, etc, the Barcode Reader reads data into the applicaton
that currently has focus with is notepad/word but not my own
applicaton.

My question is as follows: Is there a way to write a Listener
Class/Windows Service to ALWAYS direct the Data that the barcode reader
reads in into my own application even though it does not have focus?

The reason that i'm doing this is to be able to provide 2 users using
the same machine...One user used the BarCode Scanner and the other
person can still use the computer to work on aother applications.

Much Thanks,
Neil

Feb 17 '06 #4
Hi,

IMO, there is no good way to do this.

So, my recommendation it to use a scanner with a serial interface. Then,
there is no such problem. All barcode reader manufacturers provide models
with RS-232 serial interfaces for just this reason. If you have to use it
with a PC that has only a USB interface, you still have the option of adding
a serial UAB adapter.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004.
See www.hardandsoftware.net for details and contact information.
Feb 17 '06 #5
Hi Steve, Dick,

I really appreciate both of your help and input.

Steven, keyboard hook approach would probably be the easiest though
there is a side effect to this approach. When I've tried the sample
application via the download, the hook even works fine...but it places
the INPUT in BOTH Application.
My main goal is to "Redirect" the input of the scanner to one
application reguardless if it has focus or not, in foregroud or
background.

Dick, your approach seems very plausible but I have never programmed on
I/O devices other than Mouse/Keyboard. So i'm not sure if I could
"preformed" the code nessecary to do this type of I/O redirection.

Thanks Guys!!!

Neil

Feb 17 '06 #6

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

Similar topics

21
12168
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...
4
10218
by: Tom | last post by:
Using VB6, I want to read barcode data into an Access 2000 DB. What do you get when you read a barcode? Text or numbers. How do you define the field were the data would be stored? Thanks in...
4
8924
by: Mat | last post by:
Does anyone know how to generate ,print and read barcode with VB.NET?
3
3334
by: PaoloB | last post by:
Hi everyone, I am searching for a python library for barcode recognition. We have developed a rather complex application for document tracking and document management in python/Zope, called...
2
2837
by: =?Utf-8?B?UmludSBHb3BhbGFrcmlzaG5hIFBpbGxhaQ==?= | last post by:
Hi, I have an application with a barcode in the Image. I want to read the barcode from the image using program. Image resolution is 120 X 120 DPI.I tried to read thru different barcode SDKs...
2
1161
by: qqinfo | last post by:
i want to develope application that take inputs from barcode reader directly to pc by using vb6 how can you help me .and also i want to know the triks which barcode reader is best for this...
7
4203
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...
1
3073
by: bojkar | last post by:
Hello everyone. I have quastion :) I have metrologic Eclipse MS5145 bar code reader in usb. Now I want read barcode from him. I'd searched metrologic homepage, a lot's of forums and search engines...
4
2736
Elias Alhanatis
by: Elias Alhanatis | last post by:
Hello everybody!!! I have a python application which i want to associate with a barcode reader. Can somebody give me a hint on how to do that (how can the application "catch" a message from the...
0
7226
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
7125
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...
1
7049
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
7499
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5055
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...
0
3199
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3186
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1561
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
422
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.