What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » init script in a folder

init script in a folder
Author: Message:
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / Male / Flag
Joined: Jul 2007
RE: init script in a folder
Please try to find such solutions in the Official Scripting Documentation next time, before asking. :)

Objects Reference > MsgPlus Object > MsgPlus::LoadScriptFile
quote:
Originally posted by Official Scripting Documentation
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.
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
05-06-2008 02:06 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
init script in a folder - by Suxsem on 05-06-2008 at 01:51 PM
RE: init script in a folder - by mynetx on 05-06-2008 at 02:06 PM
RE: init script in a folder - by Suxsem on 05-06-2008 at 02:12 PM
RE: init script in a folder - by Suxsem on 05-06-2008 at 02:42 PM
RE: init script in a folder - by Matti on 05-06-2008 at 04:08 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On