473,609 Members | 2,241 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3262

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.co m> wrote in message
news:9c******** *************** ***@msnews.micr osoft.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@(don t write this part)interaktif .gen.tr> wrote in
message news:%2******** *******@tk2msft ngp13.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@(don t write this part)interaktif .gen.tr> wrote in
message news:%2******** *******@tk2msft ngp13.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
KeyPressEventAr gs arguments that are passed to it

"Serdar C." <serdarc@(don t write this part)interaktif .gen.tr> wrote in
message news:%2******** *******@tk2msft ngp13.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
12197
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 written to a single interface, but support many different manufacturers' barcode scanning devices. I do not want to be tied to one manufacturers' software interfaces. - Must support use of the scanner from Visual Basic, and ideally from C/C++ and...
4
10229
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 advance, Tom D.
4
8938
by: Mat | last post by:
Does anyone know how to generate ,print and read barcode with VB.NET?
5
5423
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 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
6
3374
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
3746
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 textbox control I don't want the user to see the scanned number but I still need a way to read the value, in addition, I need an event that will be fired once the barcode was read in full so I know it actually finished reading Thank you, Samuel
3
3338
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 PAFlow (www.paflow.it: sorry, most of the information is in Italian...). As our project is completely free software, we will need a library that is free software too.
2
4902
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 a Textbox, it's not working. The Textbox remain blank. Here's the code:
7
4217
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 what type of barcode the user will have, so I need to be able to accept input from any industry standard barcode reader. I need to check the barcodes scanned to see if they are in a database of acceptable barcodes and simply show ACCEPT or...
0
8113
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8051
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8557
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8512
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8203
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5504
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4007
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2517
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 we have to send another system
1
1637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.