POST EVENT

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 6.0


POST EVENT (what; message; when; mouseX; mouseY; modifiers{; process})

ParameterTypeDescription
whatNumberType of event
messageNumberEvent message
whenNumberEvent time expressed in ticks
mouseXNumberHorizontal coordinate of mouse
mouseYNumberVertical coordinate of mouse
modifiersNumberModifier keys state
processNumberDestination process reference number, or
Application event queue, if omitted, or 0

Description

The POST EVENT command simulates a keyboard or mouse event. Its effect is as if the user actually acted on the keyboard or the mouse.

You pass one of the following values in what:

ConstantTypeValue
Mouse down eventLong Integer1
Mouse up eventLong Integer2
Key down eventLong Integer3
Key up eventLong Integer4
Auto key eventLong Integer5

If the event is a mouse-related event, you pass 0 (zero) in message. If the event is a keyboard-related event, you pass the ASCII code of the simulated character in message.

Usually, you pass the value returned by Tickcount in when.

If the event is a mouse-related event, you pass the horizontal and vertical coordinates of the click in mouseX and mouseY.

In the parameter modifiers, you pass one or a combination of the Events (modifiers) constants. For example, to simulate the Shift key, pass Shift key bit.

If you specify the process parameter, the event is sent to the process whose process number you pass in process. If you pass 0 (zero) or if you omit the parameter, the event is sent at the application level, and the 4D scheduler will dispatch it to the appropriate process.

See Also

POST CLICK, POST KEY.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next