Thread: Simulating a key press

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    180

    Simulating a key press

    I want a program to simulate a key press so that another program exucuts an action.

    Mainly said prog being , Asheron's call 2.

    I want my program to work on a timer, and lets say,ever minute, press keys 1-3, and have Asheron's call 2 pick up these key presses, and do the action binded to these keys.


    Cheers

    DW

  2. #2
    mov.w #$1337,D0 Jeremy G's Avatar
    Join Date
    Nov 2001
    Posts
    704
    Its called a macro program. And theres tons of them out there. Spend as much time with google as you did clicking POST THIS MESSAGE, and you'll have your program.
    c++->visualc++->directx->opengl->c++;
    (it should be realized my posts are all in a light hearted manner. And should not be taken offense to.)

  3. #3
    Registered User
    Join Date
    Mar 2004
    Posts
    180
    lol. I tried m8! I didn't really know what to look for!

    cheers

  4. #4
    Registered User
    Join Date
    Mar 2004
    Posts
    180
    *BUMP*

  5. #5
    Rabite SirCrono6's Avatar
    Join Date
    Nov 2003
    Location
    California, US
    Posts
    269
    > *BUMP*

    > 5. Don't bump your threads, (Bumping: posting messages on your own threads to move them up the list).

    - SirCrono6
    From C to shining C++!

    Great graphics, sounds, algorithms, AI, pathfinding, visual effects, cutscenes, etc., etc. do NOT make a good game.
    - Bubba

    IDE and Compiler - Code::Blocks with MinGW
    Operating System - Windows XP Professional x64 Edition

  6. #6
    Registered User
    Join Date
    Oct 2003
    Posts
    5
    Search MSDN for "FindWindow()" and "SendMessage()". That should do it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 11-23-2007, 01:48 PM
  2. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 10:00 AM
  3. Directional Keys - Useing in Console
    By RoD in forum C++ Programming
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM
  4. FAQ: Directional Keys - Useing in Console
    By RoD in forum FAQ Board
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM