473,396 Members | 2,111 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,396 software developers and data experts.

Barcode Reader Plugged in Keyboard

hello everyone, i have a question about retrieving data from a bar code
reader plugged in keyboard port (ps/2)
i really dont know how to retrieve data from keyboard, i tried some methods
but all i could get was getting key values like "F7 key", or "Shift key"...
can someone tell me how to retrieve data from a bar code scanner please? or
at least how to retrieve data from ps/2 keyboard... maybe a handle or so...
thanx for reading this post and thanx so MUCH for helping.. have a nice day.
Dec 11 '05 #1
5 3244

AFAIK, your data is in clipboard (after reader have read data), just get
them outta here

S> hello everyone, i have a question about retrieving data from a bar
S> code
S> reader plugged in keyboard port (ps/2)
S> i really dont know how to retrieve data from keyboard, i tried some
S> methods
S> but all i could get was getting key values like "F7 key", or "Shift
S> key"...
S> can someone tell me how to retrieve data from a bar code scanner
S> please? or
S> at least how to retrieve data from ps/2 keyboard... maybe a handle or
S> so...
S> thanx for reading this post and thanx so MUCH for helping.. have a
S> nice day.
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Dec 12 '05 #2
i will try that but i dot think so....

'cuz when i read a code from the scanner, as far as i see it invokes the
keypress events..., i wrote a program which listens keypress events and i
see that it presses some buttons depends on the code..
buttons like F7, Esc, Enter.... i tink thats because the operating system or
the keypress event doesnt know how to handle data sent from the scanner... i
need to write a new keypress event handler.. thanx for helping anyway..

"Michael Nemtsev" <ne*****@msn.com> wrote in message
news:9c**************************@msnews.microsoft .com...

AFAIK, your data is in clipboard (after reader have read data), just get
them outta here

S> hello everyone, i have a question about retrieving data from a bar
S> code
S> reader plugged in keyboard port (ps/2)
S> i really dont know how to retrieve data from keyboard, i tried some
S> methods
S> but all i could get was getting key values like "F7 key", or "Shift
S> key"...
S> can someone tell me how to retrieve data from a bar code scanner
S> please? or
S> at least how to retrieve data from ps/2 keyboard... maybe a handle or
S> so...
S> thanx for reading this post and thanx so MUCH for helping.. have a
S> nice day.
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do
not cease to be insipid." (c) Friedrich Nietzsche

Dec 12 '05 #3
Hi,

I haven;t used a scanner in the desktop, only in the PPC but all the
scanners I have seen brings their own SDK , what kind of scanner r u using?

check the manufacturer website

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Serdar C." <serdarc@(dont write this part)interaktif.gen.tr> wrote in
message news:%2***************@tk2msftngp13.phx.gbl...
hello everyone, i have a question about retrieving data from a bar code
reader plugged in keyboard port (ps/2)
i really dont know how to retrieve data from keyboard, i tried some
methods but all i could get was getting key values like "F7 key", or
"Shift key"... can someone tell me how to retrieve data from a bar code
scanner please? or at least how to retrieve data from ps/2 keyboard...
maybe a handle or so... thanx for reading this post and thanx so MUCH for
helping.. have a nice day.

Dec 12 '05 #4

"Serdar C." <serdarc@(dont write this part)interaktif.gen.tr> wrote in
message news:%2***************@tk2msftngp13.phx.gbl...
hello everyone, i have a question about retrieving data from a bar code
reader plugged in keyboard port (ps/2)
i really dont know how to retrieve data from keyboard, i tried some
methods but all i could get was getting key values like "F7 key", or
"Shift key"... can someone tell me how to retrieve data from a bar code
scanner please? or at least how to retrieve data from ps/2 keyboard...
maybe a handle or so... thanx for reading this post and thanx so MUCH for
helping.. have a nice day.


This was some time ago but one thing we did was established how many
characters were coming in from the barcode and placed a non-visible textbox
on the screen. On a valuechange check the length, if the barcode reader is
done then you can evaluate the entire string.

An other thing you may want to take into account is make sure once you
process your keystrokes you "throw them away" so the OS and framework don't
process them. Keys like ESC and F11 have special meanings sometimes and if
you let them continue the OS will get hold of them and do funny things.

IIRC returning "false" from the keystroke handler means they don't get
passed on. But then you have to make sure you are not trapping "real" keys
some body pressed.

Tom P.
Dec 12 '05 #5
zq
well, if you are using a PS/2 bar code reader, it emulates the keyboard.
it doesn't store the scanned code -- it acts as if you have typed it over
the keyboard.

all you can do actually is think of it as if an user is writing it down.
try these:
- create a text box and place a focus to it - everything scanned will be
written directly inside it
- on any control that supports keypress event (e.g. form) - write a handler
and analyze the
KeyPressEventArgs arguments that are passed to it

"Serdar C." <serdarc@(dont write this part)interaktif.gen.tr> wrote in
message news:%2***************@tk2msftngp13.phx.gbl...
hello everyone, i have a question about retrieving data from a bar code
reader plugged in keyboard port (ps/2)
i really dont know how to retrieve data from keyboard, i tried some
methods but all i could get was getting key values like "F7 key", or
"Shift key"... can someone tell me how to retrieve data from a bar code
scanner please? or at least how to retrieve data from ps/2 keyboard...
maybe a handle or so... thanx for reading this post and thanx so MUCH for
helping.. have a nice day.

Dec 13 '05 #6

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...
4
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
by: Mat | last post by:
Does anyone know how to generate ,print and read barcode with VB.NET?
5
by: neilphan | last post by:
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...
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
10
by: Samuel Shulman | last post by:
I assume that when I use a barcode reader (at least some of them) it will input the number as though it was entered in via the keyboard How can I then get the value without setting to focus to a...
3
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
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...

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.