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
35 / 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
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Message Log kinda thing... lmao - by Spunky on 09-01-2006 at 07:04 PM
RE: Message Log kinda thing... lmao - by Reload2 on 09-01-2006 at 10:58 PM
RE: Message Log kinda thing... lmao - by Spunky on 09-01-2006 at 11:01 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