Application.LoadScript

Application.LoadScript ( 

string Filename )

Example 1

Application.LoadScript("AutoPlay\\Scripts\\AddedFunctionality.lua");

Loads and executes the external script file called "AddedFunctionality.lua" that is currently located in "AutoPlay\Scripts." This script file will be executed once during the application.

Example 2

Application.LoadScript(_SourceFolder.."\\MyScript.lua");

Loads and executes the script file called "MyScript.lua."

Note: _SourceFolder is a built-in variable that contains the path to the folder where the autorun.exe file is located.

See also:  Related Actions