Reference Manual - Table of Contents

Execution Control
Forms and Windows
Controls
Menus
System and Desktop
Graphic Drawing Commands

Animation
QuickTime Movies
Speech
Sound
File I/O
Printing
Serial Ports

Math Functions
String Functions
Date and Time
Memory Buffers
Error Handling
Console Text Window

Events

Direct Memory Access
Direct Mouse Access
Direct Keyboard Access
Code Resource Modules

A - Runtime Error Messages
B - Compiler Error Messages

Direct Keyboard Access

Function Summary:

var$ = GetKeys( )
var = KeysDown( )
var = IfKey( )

 

var$ = GetKeys( )

This function returns a text string that represents the key down bit status of all keys on the keyboard.

 

var = KeysDown( )

This function returns a numeric value that indicates if any keys are currently being pressed. It returns a value of 1 if any keys are being pressed down or a 0 if there is not.

 

var = IfKey ( keycode )

This function returns a numeric value that indicates whether the key represented by the keycode value (which is the scan code) currently being pressed.