Results 1 to 3 of 3

Thread: how read a keyboard USB with HIDComm

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    3

    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

  2. #2

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    3

    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

  3. #3
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    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
  •  



Click Here to Expand Forum to Full Width