How to Trap CTRL+UP and CTRL+DOWN Arrow Key Sequences (124759)
The information in this article applies to:
- Microsoft Visual Basic for MS-DOS
- Microsoft QuickBASIC 4.5
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.1
This article was previously published under Q124759 SUMMARY
This article gives an example showing how to capture the key sequences of
the CTRL key with the UP and DOWN arrow keys. It involves defining new keys
that are equivalent to the key sequence and then trapping them. The CTRL
key is defined by the constant &H4, the UP arrow key by 72, and the DOWN
arrow key by 80.
Please note that you must make separate user-defined KEY statements for
trapping CTRL+UP and CTRL+DOWN in combination with the SHIFT, ALT, NUM
LOCK, and CAPS LOCK keys. The keyboard flags for these other keystroke
combinations must be added together to define a given keystroke sequence.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB124759 |
---|
|