OverviewGlobal FunctionsBuilt In
The area (code window) where you can either type in your actions, or add them through the action wizard to create your global functions.
Note: Any script entered here is loaded at runtime before anything else occurs. Therefore, any global script that interacts in any way with the Application window (e.g. Application.Exit) will not function correctly unless it is in a function, and is called from other events within your application. It is recommended that any script entered here is placed inside of a function.
Tip: To perform a task at the very beginning of your application, use the On Startup event.
When the cursor is on an action in the code window, its action definition will be displayed in this field.
When the cursor is on an action in the code window, its online help will be opened.
Adds a new action to the current event through the action wizard.
Displays a variety of code templates you can add to the code window.
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 its properties dialog where you can modify its settings.
Create and manage bookmarks in the code window so you can easily jump to specific spots in your code.
Allows you to record and play macros so you can replicate frequent code scripts in the code window.
Advanced options that are available in the Globals dialog:
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.
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.
If checked, any whitespace in the code window will be identified by special characters.
Opens the Import Registry Key/Values dialog where you can import keys or values from the Registry on your development system.
Opens a file browse dialog where you can select a .REG file that you would like to recreate using Setup Factory Registry actions.
Imports a script file (*.lua) and displays its contents in the code window.
Exports the current script in the code window as a script file (*.lua).
Prints the action script currently in the code window.
Opens the Window Properties dialog where you can customize the Globals dialog's settings.