Application.LoadScript

Application.LoadScript ( 

string Filename )

Description

Loads and executes an external script file (.lua) if it hasn't been loaded already.

A script file is simply a text file containing AutoPlay script.

Note: The contents of the script file will only be executed once per session, no matter how many times it is loaded.

Parameters

Filename

(string) The path to the external script file (.lua). Click the browse button ( ) to select a file.

Note: Script files may also be referenced by the filename alone if they are located in the project's AutoPlay\Scripts folder.

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

Availability

Standard

Pro

See also:  Related Actions