distinguish connected keyboards on windows?

Tag: windows Author: atomyth Date: 2009-08-24

I have a question regarding keyboard inputs.

I see many programmable keypads out there. I just wonder...is it possible to make a software as a replacement for programmable keypads? I am thinking following idea.

  1. connect two keyboards to a computer.
  2. make a software that distinguish each keyboard inputs to make one of keyboards as a programmable keypad.

I thought it would be possible, but all my friends say "no".

found similar question on

Best Answer

It's possible but pretty difficult - you'd have to have a device driver whose INF file specifically targets one of the keyboards (the driver chosen by PNP will always be the most specific match to the hardware), then write a HID driver that essentially replicates kbdhid.sys but instead of directly relaying the keys pressed, relays your programmed keys (or an easier solution would to have it always relay "weird" key combinations like Win+?, which you could then have a user-mode app watch for it via RegisterHotkey)

Check out this page on WDF to get started.