Calling a BIOS Interrupt to Determine the Scan Code of a Key (38878)
The information in this article applies to:
- Microsoft Visual Basic for MS-DOS
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBASIC 4.5
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
- Microsoft Basic Professional Development System for MS-DOS 7.0
This article was previously published under Q38878 SUMMARY
This article includes an example of a CALL INTERRUPT routine that
determines the scan code of a key. This program only reports the scan
codes for keys that are supported in the ROM BIOS of the machine.
Keys such as F11 and F12 do not return scan codes using this
interrupt. There are other interrupts that can be used to get the
scan codes of extended keys, but they are only supported on machines
with extended ROM BIOS. This example program is generic and runs on
any PC compatible.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB38878 |
---|
|