version 6.0
POST KEY (code{; modifiers{; process}})
Parameter | Type | Description | |
code | Number | ASCII code of character or function key code | |
modifiers | Number | State of modifier keys | |
process | Number | Destination process reference number, or | |
Application event queue, if omitted, or 0 |
Description
The POST KEY command simulates a keystroke. Its effect is as if the user actually entered a character on the keyboard.
You pass the ASCII code of the character in code.
If you pass the modifiers parameter, you pass one or a combination of the Events (modifiers) constants. For example, to simulate the Shift key, pass Shift key mask. If you do not pass modifiers, no modifiers are simulated.
If you specify the process parameter, the keystroke is sent to the process whose process number you pass in process. If you pass 0 (zero) or if you omit the parameter, the keystroke is sent at the application level, and the 4D scheduler will dispatch it to the appropriate process.
Example
See example for the command Process number.
See Also