What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » MsgPlus.LoadScriptFile() problem

MsgPlus.LoadScriptFile() problem
Author: Message:
Jeroen Noten
New Member
*


Posts: 8
Joined: Aug 2006
O.P. RE: MsgPlus.LoadScriptFile() problem
quote:
Originally posted by Eljay
Confirmed, sort of. It's quite hard to explain so I'll show examples that hopefully explain themselves. :P

Example 1:
code:
// main.js (this is in the script's root so it is loaded automatically)
Debug.Trace('1. Before LoadScriptFile');
MsgPlus.LoadScriptFile('\\C:\\test.js');
Debug.Trace('3. After LoadScriptFile');

code:
// C:\test.js
Debug.Trace('2. During LoadScriptFile');
quote:
Originally posted by Debug output
Script is starting
1. Before LoadScriptFile
3. After LoadScriptFile
2. During LoadScriptFile
Script is now loaded and ready

As you can see, test.js isn't executed immediately, but after main.js has finished being executed.


Example 2:
code:
// main.js (test.js remains the same as above)
function OnEvent_Initialize(){
  Debug.Trace('1. Before LoadScriptFile');
  MsgPlus.LoadScriptFile('\\C:\\test.js');
  Debug.Trace('3. After LoadScriptFile');
}
quote:
Originally posted by Debug output
Script is starting
Script is now loaded and ready
1. Before LoadScriptFile
2. During LoadScriptFile
3. After LoadScriptFile

For some reason, when called after the initial script load by Plus!, the order is correct meaning that test.js was executed immediately.
Thank you! This was the problem, it's solved now. (But I found out it by myself already. ;))

This post was edited on 12-28-2007 at 07:48 PM by Jeroen Noten.
12-28-2007 07:47 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
MsgPlus.LoadScriptFile() problem - by Jeroen Noten on 12-25-2007 at 02:44 PM
RE: MsgPlus.LoadScriptFile() problem - by Volv on 12-25-2007 at 03:12 PM
RE: MsgPlus.LoadScriptFile() problem - by Spunky on 12-25-2007 at 05:39 PM
RE: RE: MsgPlus.LoadScriptFile() problem - by Volv on 12-26-2007 at 10:45 AM
RE: MsgPlus.LoadScriptFile() problem - by Eljay on 12-25-2007 at 10:10 PM
RE: MsgPlus.LoadScriptFile() problem - by Matti on 12-26-2007 at 10:07 AM
RE: MsgPlus.LoadScriptFile() problem - by CookieRevised on 12-26-2007 at 10:33 AM
RE: MsgPlus.LoadScriptFile() problem - by Matti on 12-26-2007 at 11:12 AM
RE: MsgPlus.LoadScriptFile() problem - by Jeroen Noten on 12-28-2007 at 07:47 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