just added a bit of layout to your script:
code:
function updateMessage() {
FileSystem = new ActiveXObject("Scripting.FileSystemObject");
file = FileSystem.OpenTextFile("E:/Documents/testfile.txt", 1);
i = 0;
lines = new Array();
while(!file.AtEndOfStream) {
line = file.ReadLine();
if (line != '') {
lines[i] = line;
}
i++;
}
file.Close();
linenum = Math.floor(Math.random()*lines.length)-1;
Messenger.MyPersonalMessage = lines[linenum];
}
function OnEvent_Initialize(MessengerExit) {
}
function OnEvent_Uninitialize(MessengerExit) {
}
function OnEvent_Signin(email) {
if (email == Messenger.MyEmail) {
updateMessage();
MsgPlus.AddTimer('randomtext', 600000);
}
}
function OnEvent_Timer(timerId) {
if (timerId == 'randomtext') {
updateMessage();
MsgPlus.AddTimer('randomtext', 600000);
}
}