js code:try { Messenger.MyPersonalMessage = GetEverything('c:\\test.log'); } catch (e) {} function GetEverything(sFile) { var fso; fso = new ActiveXObject("Scripting.FileSystemObject"); return fso.OpenTextFile(sFile, 1 /* ForReading */).ReadAll(); }
js code:function OnEvent_Initialize() { if (Messenger.MyStatus < STATUS_INVISIBLE ) return; Messenger.MyPersonalMessage = ReadFile('c:\\test.log'); } function OnEvent_SigninReady() { OnEvent_Initialize(); } function ReadFile(sFile) { var fso = new ActiveXObject("Scripting.FileSystemObject"); return fso.OpenTextFile(sFile, 1 /* ForReading */).ReadAll(); }