AT&T 6300 Programmer's Manual page 314

Gwbasic by microsoft
Hide thumbs Also See for 6300:
Table of Contents

Advertisement

KEY
Statement
(ControlKeys)
Syntax2
n
shift
Syntax 2 of the Key statement defines keys
15 to 20 to allow you to trap any Ctrl-Key,
Shift-Key, or Super-Shift «ALT»-Key. These
are often referred to as "user-defined" keys.
KEYn,
CHR$( shift )
+
CHR$( scan_code )
is an integer expression in the range 15 to 20
is a numeric value corresponding to the following hex
values for the latched keys:
<CAPS LOCK>
<NUM LOCK>
<ALT>
< CTRL >
<SHIFT>
&H40 (Caps Lock is active)
&H20
(N
urn Lock is active)
&H08 (Alt Key is pressed)
&H04 (CTRL Key is pressed)
&H01, &H02, &H03
scancode
7-158
Both the left and right
< SHIFT> keys can be
used, where values of &HOl, &H02, or &H03
(the sum of hex 01 and hex 02) denote a
< SHIFT> key.
You can add multiple shift states, such as
<CTRL> and <ALT> keys together, by
adding the associated shift state values.
is a decimal number in the range 1 to 83. It represents
the scan code (in decimal) of the key to be trapped. See
Appendix A for a complete table of scan codes and their
associated key positions.

Advertisement

Table of Contents
loading

Table of Contents