img

Script Editor

Script Editor is used to create and edit custom scripts.

To open the editor, click on Modify for the desired script in the Navigator or create a new script, in this case, the script window will open automatically.

The script window is divided into several areas. The list of these areas from the top to the bottom is provided below:

  • Menu bar
  • Toolbar with the buttons of basic operations
  • Script editing area
  • Compiler messages area
  • Status bar


Script editor menu bar :

  • Script
    • Save. Save the script
    • Compile. Compile the script
    • Close. Close the editor window
  • Edit
    • Undo. Undo the last operation
    • Redo. Сancel the Undo operation
    • Copy. Copy the selected block of code
    • Paste. Paste the code/text from the clipboard
    • Cut. Cut the selected code into the clipboard
    • Select All. Select the whole script code
    • Delete. Delete the selected code
    • Find... Search window
    • Find Next. Find the next occurrence of the desired text while searching
    • Find Previous. Find the previous occurrence of the desired text while searching
    • Replace... Replacement
  • Help - Help Topics. Built-in help file

Key combinations for working with script editor

  • Ctrl+S Save
  • F7 Compile
  • Ctrl+Z Undo
  • Ctrl+Y Redo (Cancel the Undo operation)
  • Ctrl+C Copy
  • Ctrl+V Paste
  • Ctrl+X Cut
  • Ctrl+A Select All
  • Del Delete
  • Ctrl+F Find...
  • F3 Find Next
  • Shift+F3 Find Previous
  • Ctrl+H Replace
  • F1 Help Topics

Description of creating an utility using the built-in script editor:

  1. In the Navigator click with the right mouse button on the Utilities folder and select Create
  2. Specify the desired name for the script and click OK
  3. Enter the utility code in the Editor window and press the Compile button
  4. If there is no compilation errors in the notification area, Compiling done message will be indicated
  5. Close the editor window
  6. Right-click on the generated script in the Navigator window and select Execute on chart from the context menu to run the script