Script Explorer

The interface of the Script Explorer dialog is divided into four sections: two tree views containing all of the scripts from your project in hierarchical lists (project event trees) and two script editors. In essence, you can be working on two separate scripts at the same time. This is extremely useful if, for example, you want to work on one script while referencing another for variable names, function prototypes, etc.

Project Event Tree

The project event tree contains all of the scripts from your project in one central location. You can double-click on any item in the project event tree. If the item is a container for scripts, such as the 'Project', 'Page', or 'Dialogs' containers, double-clicking on them will display the items they contain. If the item is an event, double-clicking it will open it in the script editor to the immediate right of the current project tree.

Script Editor

The script editor in the Script Explorer dialog behaves in exactly the same way as the script editor. The only difference is that no event tabs are visible in the Script Explorer. This is because the script editor in the Script Explorer applies only to the event selected in the project event tree.

Event Variables:

The variables that are automatically set whenever the current event is triggered. (See event variables.)

Code Window

The area where you can either type in your actions, or add them through the action wizard.

Note: Once an action has been added to the code window, you can double-click it to show it's properties in the Action Properties dialog. This feature can be enabled or disabled by clicking the Advanced button on the script editor.

Quick Help:

When the cursor is on an action in the code window, it's action definition will be displayed in this field.

Action Help

When the cursor is on an action in the code window, it's online help will be opened.

Add Action

Adds a new action to the current event through the action wizard.

Add Code

Displays a variety of code templates you can add to the code window.

Edit

Edit the action's properties after it has been added to the code window. When the cursor is on an action in the code window, the Edit button will display it's properties dialog where you can modify it's settings.

Bookmarks

Create and manage bookmarks in the code window so you can easily jump to specific spots in your code.

Macros

Allows you to record and play macros so you can replicate frequent code scripts in the script editor.

Advanced

Advanced options that are available in the script editor:

Syntax Checker

This option checks the current script to make sure it is syntactically correct.  It does not check for logical or other programming errors, simply syntax.

Note: You can turn on automatic syntax checking from Edit > Preferences on the Script Editor page.

Double-click Edit

Allow double-clicking on actions in the code window to edit their properties (Properties dialog will be displayed).

Note: If Double-click Edit is unchecked, double-clicking any text in the action editor simply selects the text, as in most other text editors. This option can also be set in Edit > Preferences on the Script Editor page.

Show Whitespace

If checked, any whitespace in the code window will be identified by special characters.

Import Registry Values...

Opens the Import Registry Key/Values dialog where you can import keys or values from the Registry on your development system.

Import .REG Files...

Opens a file browse dialog where you can select a .REG file that you would like to recreate using Setup Factory Registry actions.

Import...

Imports a script file (*.lua) and displays its contents in the code window.

Export...

Exports the current script in the code window as a script file (*.lua).

Print...

Prints the action script currently in the code window.

Global Functions ...

Opens the global functions dialog.

Editor Settings...

Opens the Window Properties dialog where you can customize the Globals dialog's settings.