key press combinations

This is a discussion on key press combinations within the C++ Programming forums, part of the General Programming Boards category; What is an easy way to check (it doesn't have to constantly be checking for this) if a user presses ...

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    417

    key press combinations

    What is an easy way to check (it doesn't have to constantly be checking for this) if a user presses a key combination?

    I'm using Microsoft VC++ 6.0 as a compiler for a console application.

    Basically, I want it to
    Code:
     cout << "You pressed ALT-F4\n";
    if they press that. The same thing with CTRL+ALT+DELETE, the start button, ALT+enter, and ALT+TAB.

    Thanks!

    ---------------
    (Don't learn QBasic before C++... it'll mess you up)

  2. #2
    BMJ
    BMJ is offline
    Banal internet user BMJ's Avatar
    Join Date
    Aug 2002
    Location
    Chicagoland
    Posts
    1,380
    I just read your signature... it's true!

  3. #3
    Registered User
    Join Date
    Sep 2002
    Posts
    22

    heh

    c++ is my first language and eh ive learned prolly more off this board today than on the tutorials ive read lol
    Laugh

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 11-23-2007, 12:48 PM
  2. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 09: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

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