Thread: Sending Keystrokes

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    13

    Question Sending Keystrokes

    Hi,

    When I used Visual Basic there was a function called SendKeys() that would enable me to simulate keystrokes.

    I was wondering if anyone could tell me how to do this from C++, or even what the Windows API equivalent is?

    Thanks in advance.

  2. #2
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    Depends where you want to send them, but SendMessage() is probably what you want (win32 API).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sending keystrokes to another view
    By azeemanwer in forum C++ Programming
    Replies: 2
    Last Post: 08-28-2007, 10:41 AM
  2. sending a string as keyboard keystrokes wrongly
    By hanhao in forum C++ Programming
    Replies: 1
    Last Post: 06-29-2007, 07:49 AM
  3. Sending keystrokes
    By chris1985 in forum Windows Programming
    Replies: 4
    Last Post: 12-20-2004, 01:26 PM
  4. Sending keystrokes
    By nate11000 in forum C++ Programming
    Replies: 17
    Last Post: 06-15-2003, 09:31 PM
  5. Sending keystrokes to window?(PLEASE ANSWER!)
    By SyntaxBubble in forum Windows Programming
    Replies: 5
    Last Post: 11-24-2001, 09:28 AM