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#
  4. Using P/Invoke SendInput

Using P/Invoke SendInput

Scheduled Pinned Locked Moved C#
helptutorialquestion
3 Posts 3 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
    realmontanakid
    wrote on last edited by
    #1

    Hi Does anyone knows how to Send a Hotkey using the WinApi? I want to send CTRL-ALT-DELETE to an Remote Client. I should use SendInput but I don't know how. Can anyone help me???? Best Regards

    N D 2 Replies Last reply
    0
    • R realmontanakid

      Hi Does anyone knows how to Send a Hotkey using the WinApi? I want to send CTRL-ALT-DELETE to an Remote Client. I should use SendInput but I don't know how. Can anyone help me???? Best Regards

      N Offline
      N Offline
      Nick Parker
      wrote on last edited by
      #2

      You can't hook the remote keyboard, this has already been answered here[^].

      - Nick Parker Microsoft MVP - Visual C#
      My Blog | My Articles

      1 Reply Last reply
      0
      • R realmontanakid

        Hi Does anyone knows how to Send a Hotkey using the WinApi? I want to send CTRL-ALT-DELETE to an Remote Client. I should use SendInput but I don't know how. Can anyone help me???? Best Regards

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        You can't use SendInput on your machine to send keystrokes to a remote machine. You CAN use it if the remote machine is running a server application that responds to request from a client application on your machine. You can put the SendInput code in the server app and execute it on some signal that you come up with and send using the client app. But, then, Heath already told you this... If you need to figure out SendInput and C#, then Google for it! All you need to search for is "SendInput C#". Here[^], I've done it for you. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        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