Thread: key press combinations

  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
    Banal internet user
    Join Date
    Aug 2002
    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, 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