Triggers: Difference between revisions

6 bytes added ,  22 September 2016
m
no edit summary
mNo edit summary
mNo edit summary
Line 21: Line 21:
:; Trigger or Trigger Script
:; Trigger or Trigger Script
:: A script that may be defined to run when an event occurs for an entry<br/>The trigger (Event type & Phase) and the corresponding trigger script are one-to-one.<br/>When referring specifically to the script, it is called the ''trigger script''. When referring to the Event type & Phase and its listing in the trigger list, it is referred to merely as a ''trigger''.
:: A script that may be defined to run when an event occurs for an entry<br/>The trigger (Event type & Phase) and the corresponding trigger script are one-to-one.<br/>When referring specifically to the script, it is called the ''trigger script''. When referring to the Event type & Phase and its listing in the trigger list, it is referred to merely as a ''trigger''.
== Creating a trigger ==
Each library can have a number of triggers &mdash; up to one for each Event. To see the list of triggers, open the library, open the menu, and then select ''Triggers''.
To create a trigger, open the library's list of triggers and click <big>'''+'''</big>. You must then identify the Event and write a trigger script that performs the necessary actions.


== Mode of script execution ==
== Mode of script execution ==
Line 35: Line 30:
; Asynchronous script execution mode
; Asynchronous script execution mode
: results in the script running in the background; user interaction is not suspended. Usually, asynchronous scripts are used in the last phases of the action.
: results in the script running in the background; user interaction is not suspended. Usually, asynchronous scripts are used in the last phases of the action.
== Creating a trigger ==
Each library can have a number of triggers &mdash; up to one for each Event. To see the list of triggers, open the library, open the menu, and then select ''Triggers''.
To create a trigger, open the library's list of triggers and click <big>'''+'''</big>. You must then identify the Event and write a trigger script that performs the necessary actions.


== Events ==
== Events ==
These are the defined ''Event types'', ''Phases'', and their corresponding moves of execution.
These are the defined ''Event types'', ''Phases'', and their corresponding moves of execution.
{| class="wikitable"
{| class="wikitable"
|+ THE DEFINED EVENT TYPES & PHASES
|+ THE DEFINED EVENT TYPES & THEIR PHASES
|-
|-
! Event type !! Phase !! Execution mode
! Event type !! Phase !! Execution mode