Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>scankey()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SCANKEY()

Syntax:     SCANKEY()

Returns:    A numeric value.
            The scancode of the key pressed.

Usage:      SCANKEY() returns the scancode of a key, untranslated.  It
            is therefore possible to distinguish keys or combinations of
            keys that have the same value with INKEY().  SCANKEY() does
            not get the character from any buffer, but waits for a
            keyboard input and returns the corresponding scancode.

Notes:      Key traps, including those inherent to Clipper, will not be
            processed.  The combined return value of SCANKEY() is
            easily broken down using the functions NUMLOW() and
            NUMHIGH().

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   * Crtl-W will return the following.
            ? INKEY()                           && 23
            ? SCANKEY()                         && 4375
            ? NUMLOW(SCANKEY())                 && 23
            ? NUMHIGH(SCANKEY())                && 17

            * Ctrl-End will return the following
            * when inputting.
            ? INKEY()                           && 23
            ? SCANKEY()                         && 29952
            ? NUMLOW(SCANKEY())                 && 0
            ? NUMHIGH(SCANKEY())                && 117



See Also: NUMLOW() NUMHIGH() KEYREAD()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson