|
MsgPlus::LoadScriptFile
The MsgPlus::LoadScriptFile function loads additional
JScript code into your running script. The whole content of the
file is parsed and immediately placed in a running state (newly
defined functions can be executed from anywhere in your script and
lines belonging to the global scope are executed).
Syntax
[boolean] LoadScriptFile(
[string] ScriptFile
);
Parameters
- ScriptFile
- [string] Name of the JScript file to be loaded. It is
recommended to use Unicode text files. The path is relative to the
script's directory by default, to override this behavior, prefix
the path with "\". Example: "\C:\directory\script.js".
Return Value
A boolean value specifying if the code was parsed and run
successfully.
Remarks
The use of this function should be weighted carefully. For
clarity reasons, all the files of your script should be loaded when
the script is started. This function is only meant to be used if
parts of your script are optional or don't require to be started
immediately. Remember that all the files with a .js extension placed in your main script's
directory are always automatically loaded before the script is
started.
For security reasons, never use this function to run code you
dynamically downloaded from the internet.
Function Information
| Object |
MsgPlus |
| Availability |
Messenger Plus! Live 4.50 |
See Also
MsgPlus Object.
|