Function KeySend() Foundation

Writes keycodes into the event queue.

Syntax
KeySend( <cKeyValues> , ;
         [<lAdditive>]  ;  // Default: .F.
       ) --> lPassed
Return

Returns .T. if the keycode could be written to the event queue otherwise .F.

Description

This function exists for compatibility reasons only. A key code is build from its ASCII code and the keyboard scan code. This can lead to problems especially when programming in GUI mode and/or using different keyboards. It is strongly recommended not to use KeySend() but PostAppEvent().

When <lAdditive> is set .F. (default) the event queue will be emptied prior to writing <cKeyValues>.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.