it is and the reason i thaught it didn't worked is because i need to restart messenger
now can you help me with that problem??
cause i wnat that i you chance the goodbye message that when you log out you see the new one ??
i now have this:
code:
//global variables:
var DefWelcomeMsg = "";
var DefGoodbyeMsg = "";
//functions
function OnEvent_Initialize(MessengerStart) {
var fsObj = new ActiveXObject("Scripting.FileSystemObject");
var fileObj = fsObj.OpenTextFile(MsgPlus.ScriptFilesPath + '\\defwelcomemsg.txt', 1)
DefWelcomeMsg = fileObj.ReadAll();
fileObj.Close();
var fileObj2 = fsObj.OpenTextFile(MsgPlus.ScriptFilesPath + '\\defgoodbyemsg.txt', 1)
DefGoodbyeMsg = fileObj2.ReadAll();
fileObj2.Close();
}
to give the variables a value but this now only happens when messenger starts an di want it always updated like every 5 second or every second
____________________________________________________
p.s.
another little question how do you "say" window.close ??