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]

HB_KEYPUT()

Put an inkey code to the keyboard buffer.
---------------------------------------------------------------------------------

 Syntax

        HB_KEYPUT( <nInkeyCode> )  

 Arguments

        <nInkeyCode>   is the inkey code, which should be inserted into 
                  the keyboard buffer.

 Returns

       There  is no return value.    

 Description

      Inserts an inkey code to the string buffer. The buffer is *not*
      cleared in this operation. This function allows to insert such
      inkey codes which are not in the range of 0 to 255. To insert more
      than one code, call the function repeatedly. The zero code cannot
      be inserted.

 Examples

      // Stuff an Alt+PgDn key into the keyboard buffer
      HB_KEYPUT( K_ALT_PGDN )
  

 Tests

      HB_KEYPUT( K_ALT_PGDN ) ; ? INKEY() ==> 417
      HB_KEYPUT( K_F11 ) ; ? INKEY() ==> -40
  

Status

      Ready

 Compliance

      HB_KEYPUT() is a Harbour extension.

 Files

      Library is rtl



See Also: KEYBOARD CLEAR TYPEAHEAD INKEY()

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