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
Not exactly what you asked for but I will explain what this does.

When your status changes to busy the timer starts. After 20 minutes it will send the first message to all open windows. After 5 minutes the next message is sent. However the second message is only sent every 25 minutes.
Javascript code:
var objMessages = { 0 : 'First Message',
                    1 : 'Send Message',
                  };
 
function OnEvent_MyStatusChange ( nStatus ) {
    if ( nStatus === STATUS_BUSY ) {
        MsgPlus.AddTimer ( 0 , 1200000 ); // 1000 (miliseconds) * 60 (seconds) * 20 (minutes)
    }
}
 
function OnEvent_Timer ( sTimer ) {
    SendMessage ( objMessages [ sTimer ] , Messenger.CurrentChats );
    if ( sTimer === 0 ) {
        MsgPlus.AddTimer ( 1 , 300000 ); // 1000 (miliseconds) * 60 (seconds) * 5 (minutes)
    } else if ( sTimer === 1 ) {
        MsgPlus.AddTimer ( 0 , 1200000 ); // 1000 (miliseconds) * 60 (seconds) * 20 (minutes)
    }
}
 
function SendMessage ( sText , oChatWnds ) {
    for ( var oChatWnd = new Enumerator ( oChatWnds ); !oChatWnd.atEnd(); oChatWnd.moveNext() ) {
        if ( oChatWnd.item().EditChangeAllowed === true ) {
            oChatWnd.item().SendMessage ( sText );
        }
    }
}


This post was edited on 10-08-2009 at 05:12 PM by matty.
10-08-2009 05:10 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