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

SendKeys

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++
4 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.
  • M Offline
    M Offline
    Mustafa Demirhan
    wrote on last edited by
    #1

    Hello, I wonder if there is a function like SendKeys function in VC++. İf not, how can i send keystrokes to other applications? Do i have to use SendMessage or PostMessage functions? Mustafa Demirhan

    R M 2 Replies Last reply
    0
    • M Mustafa Demirhan

      Hello, I wonder if there is a function like SendKeys function in VC++. İf not, how can i send keystrokes to other applications? Do i have to use SendMessage or PostMessage functions? Mustafa Demirhan

      R Offline
      R Offline
      Remus Lazar
      wrote on last edited by
      #2

      Yes you should use SendMessage or PostMessage Something like SendMessage(h_yourWnd,WM_KEYDOWN,...) you should chek help for WM_KEYDOWN message to get info about parameters regards, /REMUS

      P 1 Reply Last reply
      0
      • R Remus Lazar

        Yes you should use SendMessage or PostMessage Something like SendMessage(h_yourWnd,WM_KEYDOWN,...) you should chek help for WM_KEYDOWN message to get info about parameters regards, /REMUS

        P Offline
        P Offline
        Paolo Messina
        wrote on last edited by
        #3

        Yes, but be sure to send WM_KEYUP messages for each character just after each WM_KEYDOWN, maybe with some delay.

        1 Reply Last reply
        0
        • M Mustafa Demirhan

          Hello, I wonder if there is a function like SendKeys function in VC++. İf not, how can i send keystrokes to other applications? Do i have to use SendMessage or PostMessage functions? Mustafa Demirhan

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          Look up the keybd_event() and SendInput() APIs.

          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