Which key should I use?

This is a discussion on Which key should I use? within the C++ Programming forums, part of the General Programming Boards category; I am going to make a bg program that will do specific things when two keys are pressed, (The shortcut ...

  1. #1
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342

    Question Which key should I use?

    I am going to make a bg program that will do specific things when two keys are pressed, (The shortcut key and the action key.) for an example, 'shortcut key' + 'A' will do something, and 'shortcut key' + 'G' will do something else, etc.

    Then question is, what should my 'shortcut key' be? I don't want to use 'alt' or 'ctrl' because that might also trigger something else in the active program.

    Suggestions?

  2. #2
    Super Moderator Harbinger's Avatar
    Join Date
    Nov 2004
    Posts
    74
    Make it a configurable option.

  3. #3
    Unregistered User
    Join Date
    Sep 2005
    Location
    Antarctica
    Posts
    341
    ctrl+alt+shift

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    I am going to make a bg program that will do specific things when two keys are pressed
    ctrl-alt-shift won't work.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  5. #5
    Unregistered User
    Join Date
    Sep 2005
    Location
    Antarctica
    Posts
    341
    I guess you are right, consider three keys instead of two maybe. Though then if a user only has two fingers, you may be in trouble

  6. #6
    Super Moderator Harbinger's Avatar
    Join Date
    Nov 2004
    Posts
    74
    ctrl + alt + del maybe
    Or what about alt-F4

  7. #7
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    Nevermind, I am just going to use mouse button combinations.

    [EDIT]
    >> ctrl + alt + del maybe
    >> Or what about alt-F4
    Only some idiot would fall for one of those.
    [/EDIT]
    Last edited by Queatrix; 11-12-2005 at 04:44 PM.

  8. #8
    Registered User
    Join Date
    Nov 2005
    Posts
    10
    you could use SPACE + A, B, C, D...etc

  9. #9
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    >> I don't want to use 'alt' or 'ctrl' because that might also trigger something else in the active program.

    Same problem with space.

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