What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] Received Text and Origin.

[Help] Received Text and Origin.
Author: Message:
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
RE: [Help] Received Text and Origin.
whoops, in line 69 you might have to correct the if().
oh, and btw every time you log a message it will stay at the same time that you started the script
code:
if (JustSentAMessage = false){

change the "=" to "==" or an even better one is "===" (bitwise). ;)

put variable fsObj as a 'local' variable under AddLineToFile() function.
i don't see the variable being used in other functions... :P


also, what your code basically to me is just:
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message){
Origin = MsgPlus.RemoveFormatCodes(Origin).substr(0,17);
Message = MsgPlus.RemoveFormatCodes(Message);
var now = new Date();
var h = now.getHours()+1;
var m = now.getMinutes()+1;
var s = now.getSeconds()+1;
var mo = now.getMonth()+1;
var d = now.getDate();
var y = now.getFullYear();
var FSO = new ActiveXObject("Scripting.FileSystemObject");
var file = FSO.OpenTextFile(MsgPlus.ScriptFilesPath + "\\Log "+mo+"-"+d+"-"+y+".txt", 8, 1);
file.WriteLine("["+h+":"+m+":"+s+"] "+Origin+": " + Message);
file.Close();
}

though it may not work because i haven't tested it, it just shows how you can create the basic functionality of your big script into just one function.

This post was edited on 06-30-2008 at 02:30 AM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
06-30-2008 02:05 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help] Received Text and Origin. - by uNDeRGRouND99 on 06-26-2008 at 03:27 PM
RE: [Help] Received Text and Origin. - by CookieRevised on 06-26-2008 at 04:33 PM
RE: [Help] Received Text and Origin. - by uNDeRGRouND99 on 06-26-2008 at 05:48 PM
RE: [Help] Received Text and Origin. - by Matti on 06-27-2008 at 08:03 AM
RE: RE: [Help] Received Text and Origin. - by uNDeRGRouND99 on 06-27-2008 at 08:47 PM
RE: [Help] Received Text and Origin. - by roflmao456 on 06-27-2008 at 10:30 PM
RE: [Help] Received Text and Origin. - by Matti on 06-28-2008 at 08:48 AM
RE: [Help] Received Text and Origin. - by uNDeRGRouND99 on 06-29-2008 at 10:26 PM
RE: [Help] Received Text and Origin. - by roflmao456 on 06-30-2008 at 02:05 AM
RE: [Help] Received Text and Origin. - by CookieRevised on 06-30-2008 at 06:55 AM
RE: [Help] Received Text and Origin. - by markee on 06-30-2008 at 08:43 AM
RE: [Help] Received Text and Origin. - by uNDeRGRouND99 on 06-30-2008 at 09:01 PM
RE: [Help] Received Text and Origin. - by CookieRevised on 06-30-2008 at 11:09 PM


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