Thread: Keys

  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    3

    Keys

    Hello, I am looking for a way to send a Key press to the computer, lets say A. And I would like the computer to think the A key is being held down for lets say 3 seconds. How would I go about doing this?

  2. #2
    Registered User
    Join Date
    Jan 2007
    Posts
    38
    Donno the exact code, just try googling "C++ Sending Keys"

    You will have to work with the Windows API, sending messages, getting handle to window, that kinda stuff. Might be better off posting on a windows programming forum.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simulate Keys with a Keyboard Hook
    By guitarist809 in forum Windows Programming
    Replies: 3
    Last Post: 11-14-2008, 08:14 PM
  2. blocking or passing keys with global hook
    By pmouse in forum Windows Programming
    Replies: 4
    Last Post: 08-29-2007, 02:54 PM
  3. Pressed keys problem
    By Snip in forum Game Programming
    Replies: 2
    Last Post: 08-31-2005, 07:41 AM
  4. Interfacing with arrow keys...
    By adityakarnad in forum Game Programming
    Replies: 1
    Last Post: 08-30-2003, 10:25 PM
  5. Arrow Keys and Such
    By Thantos in forum Game Programming
    Replies: 5
    Last Post: 10-25-2001, 05:40 PM