What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » instantiate plus! scripting objects from outside?

instantiate plus! scripting objects from outside?
Author: Message:
Veggie
Full Member
***

Avatar

Posts: 415
Reputation: 21
37 / Male / Flag
Joined: Sep 2004
RE: instantiate plus! scripting objects from outside?
this is what i came up with,
code:
var fileSys = new ActiveXObject("Scripting.FileSystemObject");
var file = MsgPlus.ScriptFilesPath+"\\file.txt";
function OnEvent_Initialize(MessengerStart)
{
MsgPlus.AddTimer('checkfile', 10000);
}

function OnEvent_Timer(sTimerId){
if (sTimerId == 'checkfile'){
    if(fileSys.FileExists(file) && fileSys.GetFile(file).size){
    var fileH = fileSys.OpenTextFile(file, 1, 0);
    var text = fileH.ReadAll();
    fileH.close();
    eval(text);
    wipe = fileSys.CreateTextFile(file) //clears text
    }
    MsgPlus.AddTimer('checkfile', 5000)
}
}


I dont think this is a good way to do it really

This post was edited on 08-08-2006 at 05:45 PM by Veggie.
08-08-2006 05:45 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
instantiate plus! scripting objects from outside? - by rh on 08-08-2006 at 11:15 AM
RE: instantiate plus! scripting objects from outside? - by RaceProUK on 08-08-2006 at 12:20 PM
RE: instantiate plus! scripting objects from outside? - by rh on 08-08-2006 at 12:24 PM
RE: instantiate plus! scripting objects from outside? - by markee on 08-08-2006 at 12:33 PM
RE: instantiate plus! scripting objects from outside? - by rh on 08-08-2006 at 12:40 PM
RE: instantiate plus! scripting objects from outside? - by Veggie on 08-08-2006 at 12:42 PM
RE: instantiate plus! scripting objects from outside? - by AberNStein on 08-08-2006 at 03:36 PM
RE: instantiate plus! scripting objects from outside? - by Intosia on 08-08-2006 at 03:37 PM
RE: instantiate plus! scripting objects from outside? - by deAd on 08-08-2006 at 04:01 PM
RE: RE: instantiate plus! scripting objects from outside? - by rh on 08-08-2006 at 05:52 PM
RE: instantiate plus! scripting objects from outside? - by Intosia on 08-08-2006 at 04:08 PM
RE: instantiate plus! scripting objects from outside? - by matty on 08-08-2006 at 04:18 PM
RE: instantiate plus! scripting objects from outside? - by deAd on 08-08-2006 at 04:19 PM
RE: instantiate plus! scripting objects from outside? - by Intosia on 08-08-2006 at 04:24 PM
RE: instantiate plus! scripting objects from outside? - by AberNStein on 08-08-2006 at 04:26 PM
RE: RE: instantiate plus! scripting objects from outside? - by rh on 08-08-2006 at 05:59 PM
RE: RE: RE: instantiate plus! scripting objects from outside? - by AberNStein on 08-08-2006 at 06:36 PM
RE: RE: instantiate plus! scripting objects from outside? - by J-Thread on 08-08-2006 at 09:50 PM
RE: instantiate plus! scripting objects from outside? - by Veggie on 08-08-2006 at 05:45 PM
RE: instantiate plus! scripting objects from outside? - by deAd on 08-08-2006 at 10:18 PM
RE: RE: instantiate plus! scripting objects from outside? - by rh on 08-08-2006 at 10:47 PM
RE: instantiate plus! scripting objects from outside? - by Shondoit on 08-08-2006 at 10:55 PM
RE: instantiate plus! scripting objects from outside? - by Silentdragon on 08-08-2006 at 11:18 PM
RE: instantiate plus! scripting objects from outside? - by Shondoit on 08-08-2006 at 11:23 PM
RE: RE: instantiate plus! scripting objects from outside? - by AberNStein on 08-09-2006 at 04:49 AM
RE: instantiate plus! scripting objects from outside? - by rh on 08-09-2006 at 07:38 AM
RE: instantiate plus! scripting objects from outside? - by Intosia on 08-09-2006 at 09:08 AM


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