backIndex

Xelagot action script

Run a script from within a script

See also the Run command in the [Settings] section, Xelagot action script: Introduction.

If you are not familiar with the term USBD, or with security restrictions applied by xelagots 3.607 or higher, please read User and Script Base Directory (USBD).

From within any part of an action script, you may load and execute another script. The old script will then stop running and the new script will take over completely. The syntax for this is:

Run filename
Run $f
Run
where $f contains the filename of the script. Do not confuse this statement with the one in the [Settings] section.

xelagot 3.607 or newer
The filename convention is explained in the section Filenames. Additionally, if the file is not found, the script will search in the USBD folder. If you do not specify a filename, the current script will be reloaded and run.

xelagot 3.606 or older
The file will be expected to be in the same directory as the calling script, or in the Script directory. You may also specify a full path and filename. If you do not specify a filename, the current script will be reloaded and run.
Tip: to pass information from one script to the other, you can use the load and save statements for data. As from xelagot 3.606, a new method for storing parameters in memory is available, see here.

Load and save data

There are a few load and save statements. Here is a list, with links to their pages.


backIndex