Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Input from Keyboard and Bar Code Scanner

Status
Not open for further replies.

Maii

Programmer
Aug 28, 2003
54
BD
Hi,
Is there any way to distinguish input between keyboard and bar code scanner. I have developed a VB project that user want to give input using only Bar Code scanner and Keyboard input will be Lock. How can I do this?

Thanks
maii
 
Depends on the scanner.

Most of the scanners on the market will be connected to the keyboard, and on those it is normally impossible to do that.

On those the only way I can think is to time the interval that each char takes on the input, and if greater than xxx, then it is a manual input.

Regards

Frederico Fonseca
SysSoft Integrated Ltd
 
thank you for Reply Frederico
 
Another method, although not entirely fool proof is that you allow the scanners to send the start/stop characters of the bar code.
This isn't usually "seen" in the eye readable format, so when the user types the barcode it will be without the start/stop characters.
This is how I've set it up - enforcing a double blind entry if typed.
Hope this helps.......
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top