What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Disable automatic reply

Disable automatic reply
Author: Message:
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: Disable automatic reply
ok, here you go:

code:
var SentAlready = new Array();

function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
    SentAlready[ChatWnd.Handle] = 0;

    if(Message.match("Hey") && SentAlready[ChatWnd.Handle] == 0){
        ChatWnd.SendMessage('Hi ' + Origin + '! Time to chat again :)');
        SentAlready[ChatWnd.Handle] = 1;
    }else{
        ChatWnd.SendMessage(':yay:');
    }
}

function OnEvent_ChatWndDestroyed(ChatWnd){
    if(SentAlready[ChatWnd.Handle]) SentAlready[ChatWnd.Handle] = 0;
}

NOTE: i have not tested this, and if you contact says "alfdsgakljfgnklas Hey knsdfkljgn balh" it will send the message stuff.

NOTE 2: this will (should) reset when you close the chat window... if you dont want that to happen, just take out the last function

This post was edited on 10-06-2007 at 11:37 AM by NanaFreak.
10-06-2007 11:33 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Disable automatic reply - by Jonte135 on 10-06-2007 at 11:16 AM
RE: Disable automatic reply - by NanaFreak on 10-06-2007 at 11:33 AM
RE: RE: Disable automatic reply - by Matti on 10-06-2007 at 12:05 PM
RE: Disable automatic reply - by Jonte135 on 10-06-2007 at 01:12 PM
RE: Disable automatic reply - by Matti on 10-06-2007 at 02:05 PM
RE: Disable automatic reply - by Jonte135 on 10-06-2007 at 06:14 PM
RE: Disable automatic reply - by Matti on 10-06-2007 at 06:38 PM
RE: Disable automatic reply - by Jonte135 on 10-06-2007 at 06:41 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