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
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
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.