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).
[boolean] LoadScriptFile( [string] ScriptFile );
A boolean value specifying if the code was parsed and run successfully.
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.
Object | MsgPlus |
---|---|
Availability | Messenger Plus! Live 4.50 |