Event perform

Explanation
This function performs the indicated event on the current instance. All actions in that particular event are performed. For details on the event types and numbers see the event type constants. You can use this to e.g. simulate mouse clicks.

Examples
To perform the create event, use event_perform(ev_create,0);

To peform the event for the alarm 3, use

event_perform(ev_alarm,3)

And to simulate a keypress for the Enter key, use

event_perform(ev_keypress,vk_enter)

See the keycode constants for the constant to simulate other keypress events.