Click Tools > Script Editor… to open the Script Editor window as shown below, or click the script icon in the toolbar.
...
The Script Editor will be empty when first opened. Click on the + icons at the top-left corner of the window, then click either Create New Script or Create New Action Command(s) to begin creating a script.
...
...
Item | Description |
| Adds a new script. If Create New Script is clicked, the : Edit Script pop-up window will appear allowing script name, running type, running period to be configured. If Create New Action Commands(s) is clicked, the Action Commands: Command Editor pop-up window will appear allowing scripting using commands. |
| Adds a new script folder. |
| Deletes the selected script or action list. |
| Allows the user to undo an action. |
| Allows the user to redo an action. |
| Copies the selected script or action list. |
| Pastes the previously copied/cut script or action list |
| Cuts the selected script or action list. |
| Compiles Validates the selected script. The compiled result Any errors will appear on the field marked as [Build]in the box at the bottom of the Script Editor window. Validation is not required, but is recommended. |
| Opens the ‘Find and Replace’ window. |
| Allows the user to import a previously saved script. |
| Saves the selected script to a user defined folder. |
To create a script, click the + icon at the window's top-left corner, then click Create New Script, and an Edit Script pop-up window will appear. Once the script configuration is complete, click OK to begin scripting.
...
Item | Description | |
Script Name | Allows the user to assign a name for the script. | |
Running Type | Manual | The selected script will only run when called. The script can be configured to operate on a schedule, on tag value change, on a button press, on a page open/close, etc. |
Startup | The selected script will run once the project file loads. | |
Periodic | The selected script will run periodically. | |
Running Period | Allows the user to define the interval between script executions. This option only applies to the ‘Periodic’ running type . |