What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Help me please - Script with counter and auto-response

Help me please - Script with counter and auto-response
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Help me please - Script with counter and auto-response
You can work off of the following code. This will send a message to the contact and will reply each time they send a message.
Javascript code:
var objChatWnds = {};
var objMessages = { 0 : 'First Message',
                    1 : 'Send Message',
                    2 : 'Third Message'
                  };
 
function OnEvent_ChatWndSendMessage ( oChatWnd , sMessage ) {
    if ( typeof objChatWnds [ oChatWnd.Handle ] === 'undefined' ) {
        // initialize the counter
        objChatWnds [ oChatWnd.Handle ] = {};
        objChatWnds [ oChatWnd.Handle ].Counter = 0;
        objChatWnds [ oChatWnd.Handle ].Message = sMessage;
    }
}
 
function OnEvent_ChatWndReceiveMessage ( oChatWnd , sOrigin , sMessage , nMessageKind ) {
    OnEvent_ChatWndSendMessage ( oChatWnd , '' );
    if ( objChatWnds [ oChatWnd.Handle ] !== 3 && Messenger.MyStatus === STATUS_BUSY && objChatWnds [ oChatWnd.Handle ].Message !== sMessage ) {
        oChatWnd.SendMessage ( objMessages [ objChatWnds [ oChatWnd.Handle ] ] );
        ++objChatWnds [ oChatWnd.Handle ];
    }
}
 
function OnEvent_ChatWndDestroyed ( oChatWnd ) {
    if ( typeof objChatWnds [ oChatWnd.Handle ] === 'object' ) {
        delete objChatWnds [ oChatWnd.Handle ];
    }
}

10-05-2009 01:02 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help me please - Script with counter and auto-response - by sbari on 10-03-2009 at 06:24 PM
RE: Help me please - Script with counter and auto-response - by roflmao456 on 10-03-2009 at 06:33 PM
RE: Help me please - Script with counter and auto-response - by sbari on 10-04-2009 at 09:51 AM
RE: Help me please - Script with counter and auto-response - by ArkaneArkade on 10-04-2009 at 09:57 PM
RE: Help me please - Script with counter and auto-response - by Spunky on 10-04-2009 at 10:54 PM
RE: Help me please - Script with counter and auto-response - by Nathan on 10-04-2009 at 11:46 PM
RE: RE: Help me please - Script with counter and auto-response - by ryxdp on 10-05-2009 at 12:40 AM
RE: Help me please - Script with counter and auto-response - by Spunky on 10-05-2009 at 12:37 AM
RE: Help me please - Script with counter and auto-response - by sbari on 10-05-2009 at 10:55 AM
RE: Help me please - Script with counter and auto-response - by sbari on 10-05-2009 at 11:18 AM
RE: Help me please - Script with counter and auto-response - by matty on 10-05-2009 at 01:02 PM
RE: Help me please - Script with counter and auto-response - by sbari on 10-05-2009 at 04:35 PM
RE: Help me please - Script with counter and auto-response - by matty on 10-05-2009 at 04:36 PM
RE: Help me please - Script with counter and auto-response - by sbari on 10-05-2009 at 05:05 PM
RE: RE: Help me please - Script with counter and auto-response - by sbari on 10-05-2009 at 05:13 PM
RE: Help me please - Script with counter and auto-response - by matty on 10-08-2009 at 05:10 PM
RE: Help me please - Script with counter and auto-response - by sbari on 10-08-2009 at 09:09 PM
RE: Help me please - Script with counter and auto-response - by sbari on 10-09-2009 at 10:40 AM
RE: Help me please - Script with counter and auto-response - by sbari on 10-09-2009 at 10:42 AM
RE: Help me please - Script with counter and auto-response - by matty on 10-09-2009 at 12:52 PM
RE: Help me please - Script with counter and auto-response - by sbari on 10-09-2009 at 02:18 PM
RE: Help me please - Script with counter and auto-response - by sbari on 10-09-2009 at 02:33 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