USB Port
-
:confused:Hi, I have to write a program to capture a usb barcode scanner,... as you all know, when you scan a barcode, it acts like a keyboard & just sends the barcode text to the active window. all i have to do is just to write a program which runs in the background & captures those scanned barcodes to a text file and it would not sent it to the active window,.. it's like windows message intercepting for your own purpose. i really apprecite if you can give me any sample code, or any clue. Thanks in advance
-
:confused:Hi, I have to write a program to capture a usb barcode scanner,... as you all know, when you scan a barcode, it acts like a keyboard & just sends the barcode text to the active window. all i have to do is just to write a program which runs in the background & captures those scanned barcodes to a text file and it would not sent it to the active window,.. it's like windows message intercepting for your own purpose. i really apprecite if you can give me any sample code, or any clue. Thanks in advance
-
You say it's acting like a keyboard, are you implying that it's using a generic Micorosoft Human Interface Driver? /\ |_ E X E GG
-
yes i think so, i didn't install any driver, by theway i have windows xp pro sp2. it should be same as the usb keyboards.
-
:confused:Hi, I have to write a program to capture a usb barcode scanner,... as you all know, when you scan a barcode, it acts like a keyboard & just sends the barcode text to the active window. all i have to do is just to write a program which runs in the background & captures those scanned barcodes to a text file and it would not sent it to the active window,.. it's like windows message intercepting for your own purpose. i really apprecite if you can give me any sample code, or any clue. Thanks in advance
Search the web (or codeproject) for keyboard hook, and you'll find what you look for. But probably it'll be hard to find something in C#, it's something that easier done in C++. I see dead pixels Yes, even I am blogging now!
-
yes i think so, i didn't install any driver, by theway i have windows xp pro sp2. it should be same as the usb keyboards.