msnplusfreak
New Member
Posts: 7
Joined: May 2009
|
O.P. RE: How to include a .log file in my personal message?
code: function OnEvent_Initialize() {
if (Messenger.MyStatus < STATUS_INVISIBLE ) return;
Messenger.MyPersonalMessage = ReadFile('C:\Users\Myname\Desktop\test.log');
}
function OnEvent_SigninReady() { OnEvent_Initialize(); }
function ReadFile(sFile) {
var fso = new ActiveXObject("Scripting.FileSystemObject");
return fso.OpenTextFile(sFile, 1 /* ForReading */).ReadAll();
}
|
|