Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Harbour Version 0.37 (c) reference Guid - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

KEYBOARD

Stuffs the keyboard with a string.
---------------------------------------------------------------------------------

 Syntax

        KEYBOARD <cString>  

 Arguments

        <cString>   String to be processed, one character at a time, by 
                  the Harbour keyboard processor

 Description

      This command stuffs the input buffer with <cString>. The  number of
      characters that can be stuffed into the keyboard  buffer is
      controlled by the SET TYPEAHEAD command and may range  from 0 to
      32,622, with each character appearing in the ASCII  range of 0 to
      255. None of the extended keys may be stuffed  into the keyboard
      buffer.  Issuing a KEYBOARD " " will clear the keyboard buffer.

 Examples

      // Stuff an Enter key into the keyboard buffer
      KEYBOARD CHR(13)
      // Clear the keyboard buffer
      CLEAR TYPEAHEAD
  

 Tests

      KEYBOARD CHR(13); ? INKEY() ==> 13
      KEYBOARD "HELLO"; CLEAR TYPEAHEAD; ? INKEY() ==> 0
  

Status

      Ready

 Compliance

      __KEYBOARD() is compliant with CA-Clipper 5.3



See Also: CLEAR TYPEAHEAD

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson