TRIGGER_CLICK

TRIGGER_CLICK N

SIMULATES THE EVENT ON_CLICK ON THE SYSTEM OBJECT NUMBER N

  • Type: Command
  • Parameter: 1
  • Group: System Objects

ACTION

The command TRIGGER_CLICK N simulates the event ON_CLICK on the system object number N.

SYNTAX: TRIGGER_CLICK N

  • N = system object number (integer or real). Must be greater than 0 and less than or equal to the allowed maximum number of system objects.

USE

  • The command TRIGGER_CLICK is used to simulate the event ON_CLICK on a system object.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of system objects.
  • If number N is less than or equal to 0.
  • If number N is already used for a system object number.

EXAMPLE

label click

rem create a button

button 1:caption 1,"Click"

rem define an action when clicked

on_click 1,click

rem wait for 1 second

wait 1000

rem simulate a click

trigger_click 1

end

click:

caption 1,"Done"

return

SEE ALSO

TRIGGER_KEY_DOWN

TRIGGER_KEY_UP