Ratio: 0 / 5

Inicio desactivadoInicio desactivadoInicio desactivadoInicio desactivadoInicio desactivado
 

__Keyboard()

Use hb_keyPut() instead
Syntax
KEYBOARD <cString> CLEAR TYPEAHEAD
Argument(s)
<cString> is the optional string to stuff into the Harbour keyboard buffer after clearing it first.
Note: The character ";" is converted to Chr( 13 ) (this is an undocumented CA-Cl*pper feature).
Description
Clears the Harbour keyboard typeahead buffer and then inserts an optional string into it.
Example(s)
// Stuff an Enter key into the keyboard buffer
KEYBOARD Chr( 13 )
// Clear the keyboard buffer
CLEAR TYPEAHEAD
//
KEYBOARD Chr( 13 ); ? Inkey() // ==> 13
KEYBOARD ";" ? Inkey() // ==> 13
KEYBOARD "Hello"; CLEAR TYPEAHEAD; ? Inkey() // ==> 0
Status
Ready
Compliance
__Keyboard() is compliant with CA-Cl*pper 5.3
File(s)
Library is core
See also

CLEAR TYPEAHEAD, KEYBOARD