As part of the object tree, FRED contains a folder designated for storage of scripts. These scripts are saved with the FRED documents and can also be edited/executed using script language commands.
The Embedded Scripts folder is located in the object tree on the left hand side of the FRED window.
Embedded Scripts can be edited in the following ways: •Right mouse click on an existing Embedded Script in the object tree and select "Edit an Embedded Script" from the list menu. •Ctrl + Alt + H (when an embedded script is highlighted) •Double mouse click on an embedded script •Toolbar button:
Embedded Scripts can be executed in the following ways: •Right mouse click on an existing Embedded Script in the object tree and select "Run an Embedded Script" from the list menu. •Ctrl + Alt + B (when an embedded script is highlighted) •Toolbar button:
Embedded Scripts allow all scripts pertinent to a specific FRED document to be saved/stored with that document, which can be useful when transferring FRED files among multiple users.
Embedded Scripts can contain Global Script Variables.
An AutoRun feature is available as part of the Embedded Script paradigm. If an Embedded Script saved as part of a FRED document is specifically named "AutoRun", this script will execute automatically when the FRED document is opened.
|