Purpose |
Wait until a key is pressed or a mouse event occurs. WAITSTAT does not remove the event from the console input buffer. |
Syntax |
WAITSTAT |
Remarks |
WAITSTAT literally waits for an event to occur before execution continues. While waiting, time slices are released back to the operating system in order to reduce CPU load. |
See also |
|
Example |
WAITSTAT ' Wait until an event occurs, then... A$ = INKEY$ ' retrieve the key/mouse event |