What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Message Log kinda thing... lmao

Message Log kinda thing... lmao
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. Message Log kinda thing... lmao
Just made this and thought other people may want to use it as well. When your status is anything except "Appear Offline" (2) or "Online" (3), any messages you receive are added to an array. The script then closes the chat window with that contact. You can use the command "!check" to list all messages received (so far it only lists them in the debug window), the sender and the Handle of the window (not needed, but I might be using this to add code later on). I made it for when I'm playing fullscreen games and dont won't to exit to Windows to find 3536376 windows open.

Let me know what you think, but I think it'll get trashed a bit :p

code:
var aHandle = new Array;
var aOrigin = new Array;
var aMessage = new Array;

function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message){
if(Messenger.MyStatus!=2&&Messenger.MyStatus!=3){
    if(Message!="!check"){
    aHandle[aHandle.length] = ChatWnd.Handle;
    aOrigin[aOrigin.length] = MsgPlus.RemoveFormatCodes(Origin);
    aMessage[aMessage.length] = Message;
    if(Origin!=Messenger.MyName){
    ChatWnd.SendMessage("/close");
    }
    }
    if(Message=="!check"){
        Debug.DebuggingWindowVisible = true;
        for(var a=0;a<aHandle.length;a++){
                Debug.Trace("Handle: "+aHandle[a]+" | Contact: "+aOrigin[a]+" | Message: "+aMessage[a]);
                }
           
    }
   
    }
}


PS: I did indent it, a little bit at least ;)

This post was edited on 09-01-2006 at 07:46 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
09-01-2006 07:04 PM
Profile PM Find Quote Report
Reload2
Full Member
***

-> The second Reload <-

Posts: 323
Reputation: 16
32 / Male / –
Joined: Mar 2006
RE: Message Log kinda thing... lmao
It would be good if you can make it with some configuration window and the ability to save it as chat log, that would be great. But a script like that I would definitely use :)
09-01-2006 10:58 PM
Profile PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. RE: Message Log kinda thing... lmao
Not much point to a config window as theres not much to config... If it was saves as a chat log, it would need to be saved to seperate files rather than appending it into WLM or MPL's chat logs, which might make it a bit messy reading logs and stuff. I might make it so that it opens a small window to display messages...
<Eljay> "Problems encountered: shit blew up" :zippy:
09-01-2006 11:01 PM
Profile PM Find Quote Report
« 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