Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Software Keyboard Simulator

Software Keyboard Simulator

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RedDragon2k
    wrote on last edited by
    #1

    Hello, I was just wondering whether it was possible to connect two PCs with a USB cable and simulate a keyboard on one of them. I know I could do this with a client/server system using DirectInput, but would it still be possible without installing any software on the target machine? If possible I would like to avoid using any micro-controller between the to PCs. Any ideas whether that's possible or not? Ben

    J A L 3 Replies Last reply
    0
    • R RedDragon2k

      Hello, I was just wondering whether it was possible to connect two PCs with a USB cable and simulate a keyboard on one of them. I know I could do this with a client/server system using DirectInput, but would it still be possible without installing any software on the target machine? If possible I would like to avoid using any micro-controller between the to PCs. Any ideas whether that's possible or not? Ben

      J Offline
      J Offline
      jschell
      wrote on last edited by
      #2

      RedDragon2k wrote:

      without installing any software on the target machine

      Obviously something must run to capture the input on the target machine and inject it into the OS. So presumably you just mean that you don't want to install it first. Should be possible to get the USB itself to do it. You might start by looking into how one boots an OS from a memory stick. Such articles have detailed info on how USB works.

      1 Reply Last reply
      0
      • R RedDragon2k

        Hello, I was just wondering whether it was possible to connect two PCs with a USB cable and simulate a keyboard on one of them. I know I could do this with a client/server system using DirectInput, but would it still be possible without installing any software on the target machine? If possible I would like to avoid using any micro-controller between the to PCs. Any ideas whether that's possible or not? Ben

        A Offline
        A Offline
        Andrew Brock
        wrote on last edited by
        #3

        There is no standard for connecting PCs together with a USB cable that I know of, however if you write the driver for the computer sending the commands, you could make it appear as a keyboard to the other computer so you wont need anything on the remote computer. I'm not too familiar with USB drivers, but if you get the Windows DDK[^] and take a look there are some sample USB drivers in the src folder.

        1 Reply Last reply
        0
        • R RedDragon2k

          Hello, I was just wondering whether it was possible to connect two PCs with a USB cable and simulate a keyboard on one of them. I know I could do this with a client/server system using DirectInput, but would it still be possible without installing any software on the target machine? If possible I would like to avoid using any micro-controller between the to PCs. Any ideas whether that's possible or not? Ben

          L Offline
          L Offline
          loyal ginger
          wrote on last edited by
          #4

          Your program should send out signal through the USB port you are using to connect to the target machine exactly the same signal a keyboard would send (when you use a USB keyboard). The target computer will simply believe that a USB keyboard is being plugged to the USB port. That means it's possible to achieve what you want to do. You need to work on the details, though. I believe you need to use Windows DDK to write programs to deal with USB.

          R 1 Reply Last reply
          0
          • L loyal ginger

            Your program should send out signal through the USB port you are using to connect to the target machine exactly the same signal a keyboard would send (when you use a USB keyboard). The target computer will simply believe that a USB keyboard is being plugged to the USB port. That means it's possible to achieve what you want to do. You need to work on the details, though. I believe you need to use Windows DDK to write programs to deal with USB.

            R Offline
            R Offline
            RedDragon2k
            wrote on last edited by
            #5

            Alright, I have clicked through the DDK, but from what I understand it doesn't seem possible to accomplish. Apparently a PC can only act as a host control, and will identify itself as such to the other computer. Any ideas for starting points?

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups