|
-
Jul 5th, 2006, 10:15 AM
#1
Thread Starter
New Member
how read a keyboard USB with HIDComm
First, sorry for my bad english...
I want to connect various keyboards USB to my PC and I want to know from what keyboard I receive the key
I use the HIDComm activeX control, that detect all KB are connected to my PC, but I can't know from which KB I receive the key...
Private Sub Form_Load()
HIDComm1.ConnectToPath "\\?\hid#vid_0a81&pid_0103&mi_00#7&ddf8fa5&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}"
End Sub
When I use the method "ConnectToPath", its execute the event ConnectFailure..
Anyone can help me?
thanks
-
Jul 26th, 2006, 04:10 PM
#2
Thread Starter
New Member
Re: how read a keyboard USB with HIDComm
The solution to this trouble maybe is using the DirectX objects.
The DirectInput object allow control the keyboard device..
Maybe this can help to someone that want do the same...
thanks
echavez
-
Jul 28th, 2006, 09:29 PM
#3
Re: how read a keyboard USB with HIDComm
A keyboard that's recognized by Windows is the keyboard object. Just look for keyboard input. (You can't specify which keyboard to use unless you rewrite the keyboard driver.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|