The keyboard wedge type of scanner can be handy and it can be a pain.  I am
sure Wim wants to control the scanner in some way.  In my programming I
prefer to know where the input is coming from.  Your program needs to be
ready to accept keyboard input (some control has focus and accepts keyboard
input).  In my programming I like to be able to read a barcode or a magnetic
strip from a credit card in the background so to speak.

There are USB devices out there that can do that.  There are also USB
devices that emulate a keyboard wedge as well - not what I want nor
apparently what Wim is looking for.

Jerry Sands



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Rob Kennedy
Sent: Friday, January 26, 2007 11:41 AM
To: Borland's Delphi Discussion List
Subject: Re: which keyboard was it

Wim Sterns wrote:
> I have a pc with a barcode reader and two keyboards
> attached to it.
> The barcode reader emulates also a keyboard (keyboard
> wedge)
>
> How can I see if a keystroke was sent by one of the
> keyboards (and which) or by the barcode reader ?

No. That's the point of having the barcode scanner pretend to be a
keyboard -- so you *don't* have to write additional code to read barcodes.

As far as any user-mode program is concerned, there is just one keyboard
attached to the computer. Even the kernel might not know the difference.
As long as the hardware sends the same signals as a keyboard would send,
it should pass for being the same device.

So, what are you trying to do?

-- 
Rob


_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to