What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Again a code that a really need

Again a code that a really need
Author: Message:
phalanxii
Full Member
***


Posts: 146
Reputation: 5
32 / Male / Flag
Joined: Aug 2006
Status: Away
RE: Again a code that a really need
Use MsgPlus.CancelTimer(TimerId) to cancel your delay timers. Because the timers are cancelled, OnEvent_Timer() won't be called, so the next sound will not play.

There are multiple ways of doing this. One way is to cancel the whole list of timers ("Delay1", "Delay2", etc...). Another way is to keep track of the current timer and cancel that one only. Either way works, although the first way is not as good.

This is the first way (I'm assuming you have 5 delay timers and you're using Felu's code from the other thread):
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind) {
    if(Message == "QUIT") for(var i = 1; i < 6; i++) for(var j = 0; j < ChatWnds.length; j++) MsgPlus.CancelTimer("Delay" + i + j);
}
Haven't tried it with Felu's code, but it should work.
01-30-2007 05:39 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Again a code that a really need - by Jumpfreakske on 01-29-2007 at 06:20 AM
RE: Again a code that a really need - by phalanxii on 01-29-2007 at 07:10 AM
RE: Again a code that a really need - by Jumpfreakske on 01-29-2007 at 07:50 PM
RE: Again a code that a really need - by phalanxii on 01-29-2007 at 11:16 PM
RE: Again a code that a really need - by Jumpfreakske on 01-30-2007 at 05:19 AM
RE: Again a code that a really need - by phalanxii on 01-30-2007 at 05:39 AM
RE: Again a code that a really need - by Jumpfreakske on 01-30-2007 at 05:40 AM
RE: Again a code that a really need - by phalanxii on 01-30-2007 at 05:43 AM
RE: Again a code that a really need - by Jumpfreakske on 01-30-2007 at 05:44 AM
RE: Again a code that a really need - by phalanxii on 01-30-2007 at 05:47 AM
RE: Again a code that a really need - by Jumpfreakske on 01-30-2007 at 05:52 AM
RE: Again a code that a really need - by Jumpfreakske on 01-30-2007 at 06:00 AM
RE: Again a code that a really need - by phalanxii on 01-30-2007 at 06:26 AM
RE: Again a code that a really need - by Jumpfreakske on 01-30-2007 at 06:31 AM
RE: Again a code that a really need - by phalanxii on 01-30-2007 at 06:44 AM
RE: Again a code that a really need - by Jumpfreakske on 01-30-2007 at 03:54 PM
RE: Again a code that a really need - by Jumpfreakske on 01-30-2007 at 06:49 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