About Script Triggers
- Last UpdatedNov 07, 2016
- 1 minute read
All InTouch HMI scripts are executed by script triggers. Each script type has one or more triggers to launch it.
In the Script Editor, you can select which script trigger you want to use to execute your script. You select a script trigger based on when and how a script is executed.
You can configure various triggers based on user actions, internal states, and changes of tagname values. User actions include pressing keys and clicking on graphic elements. Internal state triggers can include starting WindowViewer.
Scripts are triggered by these kinds of actions:
-
Starting and shutting down WindowViewer. See Configuring Application Scripts.
-
Opening and closing a window. See Configuring Window Scripts.
-
Pressing a key or key combination. See Configuring Key Scripts.
-
Fulfilling a certain condition, such as tagname or an expression value. See Configuring Condition Scripts.
-
Changing tagname values or tagname field values. See Configuring Data Change Scripts.
-
Clicking a graphic object. See Configuring Action Scripts.
-
Events that occur in an ActiveX control, such as clicking on the control. See Configuring ActiveX Event Scripts.
Also, you can pause script execution. By default, when WindowViewer is started, logic is running and scripts are executed. You can pause script execution at run time by halting logic. After pausing you can resume script execution. For more information, see Pausing Script Execution at Run Time.