Script triggers
- Last UpdatedJul 23, 2024
- 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 selecting graphic elements. Internal state triggers can include starting WindowViewer.
Scripts are triggered by these kinds of actions:
-
Starting and shutting down WindowViewer. See Configure application scripts.
-
Opening and closing a window. See Configure window scripts.
-
Pressing a key or key combination. See Configure key scripts.
-
Fulfilling a certain condition, such as tagname or an expression value. See Configure condition scripts.
-
Changing tagname values or tagname field values. See Configure data change scripts.
-
Selecting a graphic object. See Configure action scripts.
-
Events that occur in an ActiveX control, such as selecting the control. See Configure 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 Pause script execution at run time.