473,320 Members | 1,746 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,320 software developers and data experts.

Detecting swipe/ Barcode reader input

Hi All

I need to write a program to read input from barcode scanner.

The program is for a gym and needs to detect when a card is scanned
regardless of which program is currently running ont he computer. e.g the
operator might be typing a letter and a member swipes his card.

I am convinced I need to write the card reader section as a Windows Service,
so it is active always?

Do I watch for card reader input on a timer loop or is their an event I can
use?

Sorry for being vague, but I am new to bar code readers

I am using Vb net 2003 and the program will run on a PC with WindowsXP home
Regards
Steve
Nov 21 '05 #1
3 10634
Hi All

Forgot to add scanner will be probably keyboard wedge type or maybe
USB/Serial

Regards
Steve
"steve" <sf******@bigpond.net.au> wrote in message
news:uw**************@TK2MSFTNGP12.phx.gbl...
Hi All

I need to write a program to read input from barcode scanner.

The program is for a gym and needs to detect when a card is scanned
regardless of which program is currently running ont he computer. e.g the
operator might be typing a letter and a member swipes his card.

I am convinced I need to write the card reader section as a Windows
Service, so it is active always?

Do I watch for card reader input on a timer loop or is their an event I
can use?

Sorry for being vague, but I am new to bar code readers

I am using Vb net 2003 and the program will run on a PC with WindowsXP
home
Regards
Steve

Nov 21 '05 #2
Hi,

If this is serial (or USB virtual serial), then you do not need to write a
service -- though it could be coded as such). I have examples in my book,
see below. However, if you use a keyboard wedge, or a USB reader that
emulates a keyboard HID device, then you CANNOT use a service. These
devices demand a UI with focus continuously set to a text window for input.
They are unsuitable for unattended operation.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.
Nov 21 '05 #3
Hi,

Maybe this will help.

http://www.codeproject.com/vb/net/demmvbscan.asp

Ken
-------------------------

"steve" wrote:
Hi All

I need to write a program to read input from barcode scanner.

The program is for a gym and needs to detect when a card is scanned
regardless of which program is currently running ont he computer. e.g the
operator might be typing a letter and a member swipes his card.

I am convinced I need to write the card reader section as a Windows Service,
so it is active always?

Do I watch for card reader input on a timer loop or is their an event I can
use?

Sorry for being vague, but I am new to bar code readers

I am using Vb net 2003 and the program will run on a PC with WindowsXP home
Regards
Steve

Nov 21 '05 #4

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

Similar topics

9
by: Piotr Nowak | last post by:
Hi i need a script that will auto-submit a form when someone enters 11 characters into one of textfields.. any ideas? Thanks ;-) Peter
0
by: R. Sylvain Bédard | last post by:
Hi, I have a USB Keyboard Wedge Barcode Scanner. The problem: I need to pre-validate the incoming information as per following (staff, member, product), so I can't let the scanner just...
5
by: sameer | last post by:
Hi, I have a client who wants to use barcode scanners with web pages( internet website). They want to scan the barcode no off a label and want this no to go straight to the focused text field on...
5
by: Serdar C. | last post by:
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...
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...
4
by: Joe | last post by:
is there any free barcode reader in vb8 for code-128 ??
1
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...
1
by: syed asghar abbas | last post by:
I am Student of the BS(Cs) and i am student of the Final Term and my Final Project on the Barcode Reader that "How to Connect the Barcode Reader Device Scanner With Sql Database in C# 2005 "
1
by: likun12 | last post by:
i develope a barcode program from that barcode is generated.but i just dont know how to insert data into sqlserver from the barcode reader.
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.