Re: ASCII Code for Functions Keys (F1-F12) and TAB key

Discussion in 'C++' started by MadLucas, Sep 8, 2003.

  1. MadLucas

    MadLucas Guest

    Here:



    F1: 112

    F2: 113

    F3: 114

    F4: 115

    F5: 116

    F6: 117

    F7: 118

    F8: 119

    F9: 120

    F10: 121

    F11: 122

    F12: 123



    Standard ASCII mapping ...





    MadLucas.


    --
    Posted via http://dbforums.com
     
    MadLucas, Sep 8, 2003
    #1
    1. Advertising

  2. MadLucas

    Mike Wahler Guest

    Re: [OT] ASCII Code for Functions Keys (F1-F12) and TAB key

    MadLucas <> wrote in message
    news:...
    >
    > Here:


    Please don't post off-topic material here.

    What you've written is wrong anyway. ASCII
    (a standardized character set) has no characters
    called 'F1', 'F2', etc.

    > F1: 112


    The values 112 through 122 are the ASCII encodings for the
    lowercase characters 'p' through 'z'; 123 is the ASCII
    encoding for the character '{'

    For other character sets, these values can and do
    have different meanings. That's why standard C++
    programs should never depend upon character encodings
    but use character literals to express character values.

    Finally, standard C++ has no notion of 'function keys',
    'keys', 'keyboards' or any other particular hardware
    device. All i/o is abstracted as 'streams of characters'.

    -Mike
     
    Mike Wahler, Sep 8, 2003
    #2
    1. Advertising

  3. MadLucas

    izmirl

    Joined:
    Oct 24, 2011
    Messages:
    1
    You can use function keys F1 etc also arrow keys etc using extended ascii codes. For instance ascii code for F1 key is (00,59) an array of two rather than one. You can use this in accelerator table in visual c++ as a shortcut key check below pages

    http://www.jimprice.com/jim-asc.shtml#keycodes

    http://brebru.com/asciicodes.html

    http://msdn.microsoft.com/en-us/library/ac6d7wde.aspx

    UPDATE: Simpler method to add accelerator (shortcut key) in c++ MFC. Use accelerator table in resource view then

    [FONT=&quot]Another way to define an accelerator key is to right-click an entry or multiple entries in the Accelerator table, choose Next Key Typed from the shortcut menu, and then press any of the keys or key combinations on the keyboard. The Next Key Typed command is also available from the Edit menu.[/FONT]
     
    Last edited: Oct 24, 2011
    izmirl, Oct 24, 2011
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?U2FuamVldiBCaGF0aWE=?=

    Regarding Browse information(ALT-F12) feature same as VS 6.0

    =?Utf-8?B?U2FuamVldiBCaGF0aWE=?=, Apr 6, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    902
    =?Utf-8?B?U2FuamVldiBCaGF0aWE=?=
    Apr 8, 2005
  2. Gabriel B.
    Replies:
    0
    Views:
    406
    Gabriel B.
    Feb 13, 2005
  3. M P
    Replies:
    1
    Views:
    550
  4. Deiva Rajasingam
    Replies:
    3
    Views:
    255
    Deiva Rajasingam
    Jul 29, 2009
  5. HopfZ
    Replies:
    0
    Views:
    311
    HopfZ
    Jan 8, 2007
Loading...

Share This Page