What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » How to include a .log file in my personal message?

Pages: (2): « First « 1 [ 2 ] Last »
How to include a .log file in my personal message?
Author: Message:
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();
}
05-31-2009 08:59 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: How to include a .log file in my personal message?
Notice that the file and path name in matty's code has double slashes, it is mandatory:
Javascript code:
Messenger.MyPersonalMessage = ReadFile('c:\\test.log');



So change
code:
ReadFile('C:\Users\Myname\Desktop\test.log');
to
Javascript code:
ReadFile('C:\\Users\\Myname\\Desktop\\test.log');

.-= A 'frrrrrrrituurrr' for Wacky =-.
05-31-2009 09:22 PM
Profile PM Find Quote Report
msnplusfreak
New Member
*


Posts: 7
Joined: May 2009
O.P. RE: How to include a .log file in my personal message?
Ok, many thanks!!

It works, but when the log file changes, it must also change in my personal message...

Greetz
Messenger Plus Freak

quote:
P.S. : Can the script read also PHP files on the internet?
06-01-2009 05:11 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On