Re: Identifying input from keyboard devices

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Don Riesbeck Jr. (02070511am-reply-in-group_at_nerdlycrap.com)
Date: 02/07/05


Date: Mon, 7 Feb 2005 11:14:48 -0500

I knew I was going to forget something: This application will be running on
Windows 2000, Windows 2000 Server and potentially Windows XP.

Thanks Again

"Don Riesbeck Jr." <02070511am-reply-in-group@nerdlycrap.com> wrote in
message news:eBtyC8SDFHA.392@TK2MSFTNGP14.phx.gbl...
> I'm working on an application (OEM) using C# that utilizes input from a
> keyboard, and USB Barcode Scanner. The scanner is a HID Keyboard device,
> and input from it is sent to the system as if it were a keyboard. I need
to
> be able to identify input from the scanner and keyboard independently.
I've
> looked at DirectX.DirectInput, and using user32.dll to hook into the
> keyboard messages, but neither method seems to allow for identification of
> the device sending the input. Inputs from either device are received and
> there is not apparent difference.
>
> Is there a way for either method (DI, or hooks) to identify which keyboard
> device input is from? Or, is there another method that I overlooked?
>
> (Note that the scanner cannot send pre-fixes, or be configured as a COM
> device.)
>
> Thanks in advance!
> Don Riesbeck Jr.
>
>



Relevant Pages

  • Re: Hook for Input Panel/Mouse Windows CE
    ... user interaction, mouse or keyboard, is reported. ... Usually in this case I install a hook for keyboard and ... But this seems to not work on Windows CE 5.0. ... doesn't work on the Windows CE 5.0 device (SetWindowsHookEx - fails). ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Hook for Input Panel/Mouse Windows CE
    ... user interaction, mouse or keyboard, is reported. ... Usually in this case I install a hook (SetWindowsHookEx) for keyboard ... But this seems to not work on Windows CE 5.0. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Hook for Input Panel/Mouse Windows CE
    ... user interaction, mouse or keyboard, is reported. ... Usually in this case I install a hook (SetWindowsHookEx) for keyboard ... But this seems to not work on Windows CE 5.0. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Heron barcode scanner (datalogic)
    ... windows I can select the mode: like a keyboard or as serial device. ... If I want use the scanner with mac os x I can only use it in keyboard ...
    (comp.lang.basic.realbasic)
  • Re: Sometimes cant enter password on boot
    ... then click to obtain a blinking cursor, then use your keyboard ... Get Windows XP Service Pack 2 with Advanced Security Technologies: ... | Maybe they forgot to turn off interrupts and when the keyboard hook gets ...
    (microsoft.public.windowsxp.general)