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 System32 Dll for sending keyboard keys?

Using System32 Dll for sending keyboard keys?

Scheduled Pinned Locked Moved C#
questiontutorial
7 Posts 3 Posters 1 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.
  • O Offline
    O Offline
    omegazafer
    wrote on last edited by
    #1

    Hi, How can I send two keyboard keys at the same time by using System32? I can send consecutively but I need at the same time. For example Ctrl+c Ctrl must be keydown, C must be keyup.(key combination for copy) Best Regards

    L D 2 Replies Last reply
    0
    • O omegazafer

      Hi, How can I send two keyboard keys at the same time by using System32? I can send consecutively but I need at the same time. For example Ctrl+c Ctrl must be keydown, C must be keyup.(key combination for copy) Best Regards

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      And SendKeys did not work how for you?

      xacc.ide - now with TabsToSpaces support
      IronScheme - 1.0 alpha 4a out now (29 May 2008)

      O 1 Reply Last reply
      0
      • L leppie

        And SendKeys did not work how for you?

        xacc.ide - now with TabsToSpaces support
        IronScheme - 1.0 alpha 4a out now (29 May 2008)

        O Offline
        O Offline
        omegazafer
        wrote on last edited by
        #3

        No, it didn't solve my problem. I tried.

        L 1 Reply Last reply
        0
        • O omegazafer

          No, it didn't solve my problem. I tried.

          L Offline
          L Offline
          leppie
          wrote on last edited by
          #4

          What didnt work?

          xacc.ide - now with TabsToSpaces support
          IronScheme - 1.0 alpha 4a out now (29 May 2008)

          O 1 Reply Last reply
          0
          • L leppie

            What didnt work?

            xacc.ide - now with TabsToSpaces support
            IronScheme - 1.0 alpha 4a out now (29 May 2008)

            O Offline
            O Offline
            omegazafer
            wrote on last edited by
            #5

            Keyboard api works always although the form is inactive. SendKey method is not working on Button Click. I need system32.

            L 1 Reply Last reply
            0
            • O omegazafer

              Keyboard api works always although the form is inactive. SendKey method is not working on Button Click. I need system32.

              L Offline
              L Offline
              leppie
              wrote on last edited by
              #6

              Sorry, cant help there :|

              xacc.ide - now with TabsToSpaces support
              IronScheme - 1.0 alpha 4a out now (29 May 2008)

              1 Reply Last reply
              0
              • O omegazafer

                Hi, How can I send two keyboard keys at the same time by using System32? I can send consecutively but I need at the same time. For example Ctrl+c Ctrl must be keydown, C must be keyup.(key combination for copy) Best Regards

                D Offline
                D Offline
                DaveyM69
                wrote on last edited by
                #7

                You have two choices I think. 1. SendKeys CP Article here[^] 2. SendMessage from user32.dll PInvoke.net[^]

                Dave
                BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
                Expect everything to be hard and then enjoy the things that come easy. (code-frog)

                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