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