Navigation: Embedded Scripts

 

Embedded Scripts

 

Contact Us: fredsupport@photonengr.com

 

 

 

Description


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.

 

 

Navigation


The Embedded Scripts folder is located in the object tree on the left hand side of the FRED window.

 

Editing an Embedded Script

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:

 

 

Executing an Embedded Script

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:

 

 

Application Notes


Embedded script use

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.

 

Global script variables

Embedded Scripts can contain Global Script Variables.

 

Embedded script Auto-run

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.

 

 

Related Topics


AddEmbeddedScript

SetEmbeddedScript

GetEmbeddedScript

SetEmbeddedScriptName

GetEmbeddedScriptName

SetEmbeddedScriptDesc

GetEmbeddedScriptDesc

FindEmbeddedScript

GetEmbeddedScriptCount

RunEmbeddedScript

GetEmbeddedScriptLib

 

 

 

 

 

 

Copyright © Photon Engineering, LLC