Different keyboards – different inputs, how to talk to hardware through .NET framework?

  • Thread starter Thread starter IvicaNesic
  • Start date Start date
I

IvicaNesic

Guest
Different keyboards – different inputs, how to talk to hardware through .NET framework?

Greetings community,

This problem is part of laboratory setup that we are about to create. To keep long story short, for some security reason, one of those requirements is to have separate numeric keyboard for the app. This app should do something like this:

  1. If you press key 7 on numeric pad of main keyboard, character “7” appears in the textbox that has a focus, just like everyone would expect
  2. If you press key 7 on the remote (wireless) through USB attached numeric pad, some other process starts, regardless of what part of app’s UI has got the focus.

Idea is that operators, regardless of their level of security, cannot start several “high risk” processes accidentally, but only if they deliberately move ten feet away from the desk, and press button on the separate keyboard.

I bought one of those “for laptop” numeric pad, plugged it in my computer, and it installed itself. Now, in “devices and printers” I have two “HID keyboard device”. Manufacturer didn’t bother too much, both have Microsoft native drivers, and only property that has any meaning on first inspection is “Device instance path”

So, my question is: How to make .NET app that can recognize which keyboard has given the input signal? I don’t expect you to do that for me of course, but point me where to start looking in documentation. I don’t have idea at all.

Thanks in advance

Continue reading...
 
Back
Top