key input

This is a discussion on key input within the C++ Programming forums, part of the General Programming Boards category; can some1 point me out to a tutorial that teaches how to make a simple cpp program to press certain ...

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    9

    key input

    can some1 point me out to a tutorial that teaches how to make a simple cpp program to press certain keys w/o the user to having press any?
    Last edited by NecroFromHell; 04-04-2006 at 06:09 PM.

  2. #2
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    498
    Look up getchar(). I think that's what you're looking for in a console app.

  3. #3
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    Simulating key strokes? OS dependant.

  4. #4
    BMJ
    BMJ is offline
    Banal internet user BMJ's Avatar
    Join Date
    Aug 2002
    Location
    Chicagoland
    Posts
    1,380
    If you're working with win32 take a look at keybd_event().

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Function to check memory left from malloc and free?
    By Lechx in forum C Programming
    Replies: 4
    Last Post: 04-24-2006, 06:45 AM
  2. Trouble with a lab
    By michael- in forum C Programming
    Replies: 18
    Last Post: 12-06-2005, 11:28 PM
  3. key input definition
    By hkmixxa in forum C++ Programming
    Replies: 3
    Last Post: 08-09-2004, 06:39 PM
  4. Key input?
    By Kavity in forum Linux Programming
    Replies: 0
    Last Post: 12-20-2002, 11:01 AM
  5. BST/Red and Black Tree
    By ghettoman in forum C++ Programming
    Replies: 0
    Last Post: 10-24-2001, 11:45 PM

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