What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Debug needed] Delay Script

[Debug needed] Delay Script
Author: Message:
kjfk
New Member
*


Posts: 10
Joined: Jul 2006
O.P. RE: [Debug needed] Delay Script
What i have now...

code:
var WndRepeat = new ChatWnd(); // used to store the ChatWnd
var strMessage = "";
function OnEvent_ChatWndSendMessage(ChatWnd, sMessage)
{
if (sMessage.match(/^#.+;.+;.+/))
{
var arrayMessage = sMessage.split(";");

var stringCommand = arrayMessage[0];
var variableDelay = arrayMessage[1];
strMessage = arrayMessage[2];

WndRepeat = ChatWnd;

if (stringCommand == "#Delay")
{

MsgPlus.AddTimer("timerDelay",variableDelay);
return "";
}
}
}

function OnEvent_Timer(TimerId)
{
if (TimerId == "timerDelay") WndRepeat.SendMessage(strMessage);
}



the outcome when i type "#Delay;2000;2 sec delay":
the messenger sends "#Delay;2000;2 sec delay"

^o)

also tried doing "var strMessage = arrayMessage[2];" since im new and dont really know if it should be with or without "var".. but it is the same outcome
07-07-2006 11:03 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Debug needed] Delay Script - by kjfk on 07-07-2006 at 10:04 PM
RE: [Debug needed] Delay Script - by Dhaya on 07-07-2006 at 10:14 PM
RE: [Debug needed] Delay Script - by kjfk on 07-07-2006 at 10:29 PM
RE: [Debug needed] Delay Script - by J-Thread on 07-07-2006 at 10:57 PM
RE: [Debug needed] Delay Script - by kjfk on 07-07-2006 at 11:03 PM
RE: [Debug needed] Delay Script - by kjfk on 07-12-2006 at 08:31 AM
RE: [Debug needed] Delay Script - by mickael9 on 07-12-2006 at 10:42 AM
RE: [Debug needed] Delay Script - by kjfk on 07-12-2006 at 11:12 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