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:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: MsgPlus.LoadScriptFile() problem
I also experienced this behaviour. It seems like Plus! Live executes the script files in an order like this:
  1. Load the script files in the main script directory (Scripts\Script Name\)
  2. Execute the global codes while loading the files.
  3. Load the script files as requested by MsgPlus.LoadScriptFile().
So in fact, when you do a LoadScriptFile() call while it's still loading other script files, Plus! simply adds the file to it's "to-do" list and immediately returns. When all the script files in the main directory are already loaded and the call comes from an event, Plus! will load it immediately.

The problem is that this stops me from doing clean-up actions before the script is initialized. For example, I want to make sure that old script files which I used in Countdown Live v1 are removed before the script tries to load them. Because I can't, I have to remove them after they were loaded, which stops the script from working because of overlapping functions, and thus I have to ask the user to restart the script.

Sounds like a Plus! bug or limitation to me, yes! :P

This post was edited on 12-26-2007 at 11:09 AM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
12-26-2007 10:07 AM
Profile E-Mail PM Web 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