Shoutbox

Message Log kinda thing... lmao - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Message Log kinda thing... lmao (/showthread.php?tid=65702)

Message Log kinda thing... lmao by Spunky on 09-01-2006 at 07:04 PM

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 ;)
RE: Message Log kinda thing... lmao by Reload2 on 09-01-2006 at 10:58 PM

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 :)


RE: Message Log kinda thing... lmao by Spunky on 09-01-2006 at 11:01 PM

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...