By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,958 Members | 1,179 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,958 IT Pros & Developers. It's quick & easy.

Handling input from many keyboards

P: n/a
Hi everybody,

i'm working with many USB keyboards, which are recognized as HID keyboards
on WinXP system.

I need to handle input from all those keyboards, and identify the keyboard
who is sending keystrokes.

I tried with a DirectInput device enumeration, but it finds
only one keyboard, unless i specify EnumDevicesFlags.IncludeAliases as
enumeration flag.

Even after enumerating all usb keyboards, all keystrokes seem to be
generated from one single Device InstanceGuid. Trying to acquire one of those
alias devices generates an InputException.

I tried WMI support in System.Management namespace, but i get 3 keyboards
with same DeviceID. Anyway I don't know if it's possible to catch keystrokes
via WMI events...

How can I know what keyboard generated the keystroke..?

Help is much appreciated. Thank you.

Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.