What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Help with cancelling msgplus timer

Help with cancelling msgplus timer
Author: Message:
Rizu
New Member
*

Avatar

Posts: 12
– / Female / –
Joined: Nov 2006
O.P. RE: Help with cancelling msgplus timer
It is still not working.  Here's the complete script with your ammendments:

quote:
var aChatWnds = new Array();
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
if(Message == "!s"){
ChatWnd.SendMessage("/vc 15");
aChatWnds[aChatWnds.length-1] = ChatWnd;
MsgPlus.AddTimer("Delay1"+[aChatWnds.length-1], 15300);
else if(Message == "!q"){
MsgPlus.CancelTimer("Delay1"+aChatWnds.length-1);
}
}

function OnEvent_Timer(TimerId){
switch(TimerId.substr(0,6)){
case "Delay1":
aChatWnds[TimerId.substr(6)].SendMessage("/vc 15");
MsgPlus.AddTimer("Delay2"+[TimerId.substr(6)], 15200);
break;
case "Delay2":
aChatWnds[TimerId.substr(6)].SendMessage("/vc 15");
MsgPlus.AddTimer("Delay3"+[TimerId.substr(6)], 15200);
break;
case "Delay3":
aChatWnds[TimerId.substr(6)].SendMessage("/vc 15");
MsgPlus.AddTimer("Delay4"+[TimerId.substr(6)], 15200);
break;
case "Delay4":
aChatWnds[TimerId.substr(6)].SendMessage("/vc 15");
MsgPlus.AddTimer("Delay5"+[TimerId.substr(6)], 15200);
break;
case "Delay5":
aChatWnds[TimerId.substr(6)].SendMessage("/vc 15");
MsgPlus.AddTimer("Delay6"+[TimerId.substr(6)], 15200);
break;
case "Delay6":
aChatWnds[TimerId.substr(6)].SendMessage("/vc 15");
MsgPlus.AddTimer("Delay7"+[TimerId.substr(6)], 15200);
break;
case "Delay7":
aChatWnds[TimerId.substr(6)].SendMessage("/vc 15");
MsgPlus.AddTimer("Delay8"+[TimerId.substr(6)], 15200);
break;
case "Delay8":
aChatWnds[TimerId.substr(6)].SendMessage("/vc 15");
MsgPlus.AddTimer("Delay9"+[TimerId.substr(6)], 15200);
break;
case "Delay9":
aChatWnds[TimerId.substr(6)].SendMessage("/vc 15");
MsgPlus.AddTimer("Delay10"+[TimerId.substr(6)], 15200);
break;
case "Delay10":
aChatWnds[TimerId.substr(6)].SendMessage("/vc 15");
break;
}
}


This has only rendered the script unusable.  Perhaps I should debug this?

This post was edited on 03-11-2007 at 06:28 PM by Rizu.
03-11-2007 06:24 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help with cancelling msgplus timer - by Rizu on 03-11-2007 at 03:23 AM
RE: Help with cancelling msgplus timer - by matty on 03-11-2007 at 04:49 AM
RE: Help with cancelling msgplus timer - by Rizu on 03-11-2007 at 05:01 AM
RE: Help with cancelling msgplus timer - by Rizu on 03-11-2007 at 05:50 PM
RE: Help with cancelling msgplus timer - by foaly on 03-11-2007 at 06:02 PM
RE: Help with cancelling msgplus timer - by Rizu on 03-11-2007 at 06:07 PM
RE: Help with cancelling msgplus timer - by vikke on 03-11-2007 at 06:19 PM
RE: Help with cancelling msgplus timer - by Rizu on 03-11-2007 at 06:24 PM
RE: Help with cancelling msgplus timer - by foaly on 03-11-2007 at 07:19 PM
RE: Help with cancelling msgplus timer - by Rizu on 03-11-2007 at 08:34 PM
RE: Help with cancelling msgplus timer - by NanaFreak on 03-11-2007 at 08:49 PM
RE: Help with cancelling msgplus timer - by Rizu on 03-11-2007 at 09:30 PM
RE: Help with cancelling msgplus timer - by Ezra on 03-11-2007 at 09:56 PM
RE: Help with cancelling msgplus timer - by Rizu on 03-11-2007 at 10:02 PM
RE: Help with cancelling msgplus timer - by phalanxii on 03-11-2007 at 11:36 PM
RE: Help with cancelling msgplus timer - by foaly on 03-12-2007 at 12:26 PM
RE: RE: Help with cancelling msgplus timer - by phalanxii on 03-13-2007 at 08:19 AM


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