Keys

This is a discussion on Keys within the C++ Programming forums, part of the General Programming Boards category; Hello, I am looking for a way to send a Key press to the computer, lets say A. And I ...

  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, 03:54 PM
  3. Pressed keys problem
    By Snip in forum Game Programming
    Replies: 2
    Last Post: 08-31-2005, 08:41 AM
  4. Interfacing with arrow keys...
    By adityakarnad in forum Game Programming
    Replies: 1
    Last Post: 08-30-2003, 11:25 PM
  5. Arrow Keys and Such
    By Thantos in forum Game Programming
    Replies: 5
    Last Post: 10-25-2001, 06:40 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21