What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [release] No Response

[release] No Response
Author: Message:
TheGuruSupremacy
Full Member
***

Avatar

Posts: 367
Reputation: 19
34 / Male / Flag
Joined: Nov 2006
RE: [release] No Response
quote:
Originally posted by nuclide

after nudge I want to write automatically "You didn't response me after 30 sec. " How can I add this..

code:
var SettingMessage;
var SettingTimer;

function OnEvent_Initialize(MessengerStart)
{
    SettingMessage = "/nudge";
    SettingTimer = 30000;
}

function OnEvent_Timer(TimerID)
{
    Debug.Trace("Timer Launched");
    Messenger.OpenChat(TimerID).SendMessage(SettingMessage)
    Messenger.OpenChat(TimerID).SendMessage("You didn't response me in 30 sec.");
}

function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{
    if (Origin != Messenger.MyName) {
    Debug.Trace("Message Received");
    var Contacts = ChatWnd.Contacts;
    var e = new Enumerator(Contacts);
    for(; !e.atEnd(); e.moveNext()) {
        var Contact = e.item();
        Debug.Trace(" " + Contact.Email);
    }
    MsgPlus.CancelTimer(Contact.Email);
    Debug.Trace("Timer Cancelled");
    }
    else {
    if (Message != SettingMessage)
    {
    var Contacts = ChatWnd.Contacts;
    var e = new Enumerator(Contacts);
    var NoContacts = 0;
    for(; !e.atEnd(); e.moveNext()) {
        var Contact = e.item();
        Debug.Trace(" " + Contact.Email);
        NoContacts = NoContacts + 1;
    }
    Debug.Trace(NoContacts);
    if (NoContacts == 1) {
        MsgPlus.AddTimer(Contact.Email, SettingTimer);
        Debug.Trace("Timer Started");
    }
    }
    }
}

06-18-2007 11:11 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[release] No Response - by saralk on 08-26-2006 at 11:39 AM
RE: [release] No Response - by Jimbo on 08-26-2006 at 11:43 AM
RE: [release] No Response - by Felu on 08-26-2006 at 11:57 AM
RE: [release] No Response - by Jimbo on 08-27-2006 at 05:26 PM
RE: [release] No Response - by vaccination on 08-27-2006 at 05:33 PM
RE: [release] No Response - by Thor on 08-27-2006 at 05:57 PM
RE: [release] No Response - by artfuldodga on 08-27-2006 at 06:13 PM
RE: [release] No Response - by nuclide on 06-18-2007 at 07:56 AM
RE: [release] No Response - by TheGuruSupremacy on 06-18-2007 at 11:11 AM
RE: RE: [release] No Response - by nuclide on 06-18-2007 at 01:32 PM
RE: [release] No Response - by TheGuruSupremacy on 06-18-2007 at 02:12 PM
RE: [release] No Response - by nuclide on 06-18-2007 at 02:34 PM
RE: [release] No Response - by KatieScarlett on 06-18-2007 at 02:55 PM
RE: [release] No Response - by CookieRevised on 06-18-2007 at 03:04 PM
RE: [release] No Response - by Eddie on 06-18-2007 at 04:05 PM
RE: [release] No Response - by saralk on 06-18-2007 at 04:25 PM
RE: [release] No Response - by blacky on 03-15-2008 at 11:48 AM
RE: [release] No Response - by saralk on 03-15-2008 at 08:32 PM
RE: [release] No Response - by blacky on 03-15-2008 at 08: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