4D v14.3

POST KEY

Home

 
4D v14.3
POST KEY

POST KEY 


 

POST KEY ( code {; modifiers {; process}} ) 
Parameter Type   Description
code  Longint in Character code or function key code
modifiers  Longint in State of modifier keys
process  Longint in Destination process reference number, or Application event queue, if omitted, or 0

The POST KEY command simulates a keystroke. Its effect is as if the user actually entered a character on the keyboard.

You pass the 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.

 
PROPERTIES 

Product: 4D
Theme: User Interface
Number: 465

 
HISTORY 

Created: 4D v6

 
SEE ALSO 

POST CLICK
POST EVENT

 
ARTICLE USAGE

4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)