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. How to include a .log file in my personal message?
Hello,

Does someone know how I can include a .log file (on my computer or on the internet, preferably on my computer) in my Personal Message?


Greetz
  Messenger Plus Freak
05-22-2009 06:14 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: How to include a .log file in my personal message?
How long would this .log file be? Personal messages are limited to 255 characters I think it is.
05-22-2009 07:15 PM
Profile E-Mail 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?
No more than 70 characters...
05-22-2009 07:17 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: How to include a .log file in my personal message?
You can use FileSystemObject to read the file then set the text to Messenger.MyPersonalMessage

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();
}

This post was edited on 05-22-2009 at 07:30 PM by matty.
05-22-2009 07:20 PM
Profile E-Mail 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?
Regrettably, Nothing Happens in my personal message...
05-22-2009 07:41 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: How to include a .log file in my personal message?
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();
}

Something like this should work. It should have worked before oh well.

This post was edited on 05-22-2009 at 07:47 PM by matty.
05-22-2009 07:47 PM
Profile E-Mail 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?
Nothing happens, maybe you can give "Remote Assistance" with MSN?
I'll add you on my messenger, Can I get your email adress?

Or maybe you can give me the .plsc file?

Greetzzz

This post was edited on 05-23-2009 at 07:30 AM by msnplusfreak.
05-22-2009 07:56 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: How to include a .log file in my personal message?
Did you replace the the path of C:\\test.log with a valid file that you are wanting to read?
05-25-2009 11:51 AM
Profile E-Mail 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?
Yes, I replaced that...
05-29-2009 05:14 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: How to include a .log file in my personal message?
Post the code and the file as well please.
05-29-2009 06:12 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