Link to home
Start Free TrialLog in
Avatar of carmodyk
carmodykFlag for United States of America

asked on

multiple keyboards

Hello Experts, I've been knocking my head about this, now I'll need your help as well. ;)
I'm wondering if there is some code that can determine if a keyboard is used, which keyboard is it?  I have two keyboards hooked up (one PS2 the other USB) and when I start typing, I want to know either by ID, Number, Letter or whatever, which keyboard it's coming from.

I found this example in C#, but I'm not that well versed in it to translate it into VB.net.  
http://www.codeproject.com/useritems/rawinput.asp

Thanks in advance for your assistance.
ASKER CERTIFIED SOLUTION
Avatar of Mohamed Zedan
Mohamed Zedan
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of carmodyk

ASKER

You are a programming God, sir.   You have my humble respect and many many thanks.  My first born shall have the name mohzedan after you. :)
You're very much welcome.... :)
If either of you guys are still monitoring this thread...  I could use a bit more info on how to accomplish just one more thing here:

https://www.experts-exchange.com/questions/23099329/Capture-data-from-usb-hid-keyboard.html
Avatar of Taartcoder
Taartcoder

mohzedan, this is EXACTLY what i was looking for :) a lot of thanks!
I'm new to VB.net and low skilled in VB.

I want to implement this in VBA, is it possible? If it works i need to translate the code to VBA.

a lot of thanks in advace!
This code is fantastic!!!!
I would do flick-flack backwards if you could show me how to capture many mouses movements also.

BUT I DON'T THINK IT IS POSSIBLE!!!!