Configuring Application Scripts
- Last UpdatedMar 18, 2022
- 2 minute read
Application scripts are linked to the entire InTouch HMI application. You can use application scripts to:
-
Execute a script one time when WindowViewer is started.
-
Execute a script periodically while WindowViewer is running.
-
Execute a script one time when WindowViewer is shut down.
To configure an application script
-
In the Scripts pane, right-click on Application and then click Open.
The Application Script dialog box appears.
-
In the Condition Type list, click the condition for the script execution:
-
Click On Startup to configure a script to execute one time when WindowViewer is started.
-
Click While Running to configure a script to execute periodically while WindowViewer is running.
-
Click On Shutdown to configure a script to execute one time when WindowViewer is shut down.
-
-
If you selected While Running in the previous step, type a time interval between 1 and 360000 milliseconds in the Every box. The time interval specifies how often the script is executed.
-
Type your script in the window.
-
Click OK.
To delete an application script
-
In the Scripts pane, right-click on Application and then click Open.
The Application Script dialog box appears.
-
In the Condition Type list, click the condition for the script to delete.
The script appears in the main section of the Application Script dialog box.
-
On the Edit menu, click Clear.
The script from the main section clears and the associated script is deleted.