Topic 6.1.3: Types of Scripts
- In InTouch, scripts are categorized based on what causes the script to run. For example, you would create a "key script" if you want a script to execute when the operator presses a certain key on the keyboard.
- After you have chosen the script type, you can then further define the criteria, or conditions, that make the script execute. For example, you might want the script to execute when the key is released, not when the key is pressed.
- The script types are:
- Application scripts execute either continuously while WindowViewer is running or one time when WindowViewer is started or shut down
- Window scripts execute periodically when an InTouch window is open or one time when an InTouch window is opened or closed.
- Key scripts execute one time or periodically when a certain key or key combination is pressed or released.
- Condition scripts execute one time or periodically when a certain condition is fulfilled or not fulfilled.
- Data change scripts execute one time when the value of a certain tag or expression changes.
- Action scripts execute one time or periodically when an operator clicks on an InTouch HMI graphic object. Action scripts often are used for pushbuttons.
- ActiveX event scripts execute one time when an ActiveX event occurs, such clicking the ActiveX control.
Last modified: Saturday, 7 March 2020, 2:53 PM