Shoutbox

[?] A MsgPlus."LoadScriptFolder" - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [?] A MsgPlus."LoadScriptFolder" (/showthread.php?tid=89258)

[?] A MsgPlus."LoadScriptFolder" by roflmao456 on 02-18-2009 at 09:51 PM

It would be helpful if there was a function like this :P

Right now I'm using:

JScript code:
function MsgPlus_LoadScriptFolder(f){
for(e=new Enumerator(new ActiveXObject("Scripting.FileSystemObject")
.GetFolder(MsgPlus.ScriptFilesPath+"\\"+f).Files);!e.atEnd();e.moveNext())
MsgPlus.LoadScriptFile(f+"\\"+e.item().Name);
}

If this function existed then it would just be

JScript code:
MsgPlus.LoadScriptFolder("extra");

so it could possibly load alot faster than what I currently have :P

Maybe Patchou can add this to the scripting engine?