471,310 Members | 1,240 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

Handling input from many keyboards

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
0 1169

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Bob Smith | last post: by
11 posts views Thread by Master of C++ | last post: by
3 posts views Thread by James Foreman | last post: by
reply views Thread by =WereWolf= | last post: by
41 posts views Thread by Jordan | last post: by
35 posts views Thread by jeffc226 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.