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(); }
js code:Messenger.MyPersonalMessage = ReadFile('c:\\test.log');
code:ReadFile('C:\Users\Myname\Desktop\test.log');
js code:ReadFile('C:\\Users\\Myname\\Desktop\\test.log');
quote:P.S. : Can the script read also PHP files on the internet?