Thread: key input

  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 05:09 PM.

  2. #2
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    499
    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
    Banal internet user
    Join Date
    Aug 2002
    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, 05: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, 05: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, 10:45 PM