left or right ctrl/alt keys

This is a discussion on left or right ctrl/alt keys within the Windows Programming forums, part of the Platform Specific Boards category; Is there a way to tell the difference bettween left and right ctrl/alt Keys? I'll be using VS2003, c++ or ...

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    53

    left or right ctrl/alt keys

    Is there a way to tell the difference bettween left and right ctrl/alt Keys? I'll be using VS2003, c++ or c#.

    JMD

  2. #2
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    This should be in the C/C++ board.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,834
    Actually the windows board
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    http://msdn.microsoft.com/library/de..._Key_Codes.asp

    MSDN says the virtual key codes are VK_LCONTROL and VK_RONTROL for left and right ctrl keys, although I suspect the latter was a typo. The others alts are there too: VK_LMENU and VK_RMENU
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  5. #5
    Registered User
    Join Date
    Jul 2003
    Posts
    53
    Thanks, I wasn't sure what board it should go in.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Pressed keys problem
    By Snip in forum Game Programming
    Replies: 2
    Last Post: 08-31-2005, 08:41 AM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 04:00 PM
  3. pointer to array of objects of struct
    By undisputed007 in forum C++ Programming
    Replies: 12
    Last Post: 03-02-2004, 04:49 AM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  5. Please help me
    By teedee46 in forum C++ Programming
    Replies: 9
    Last Post: 05-07-2002, 12:28 AM

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