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. [Debug needed] Delay Script
I am on a learning phase of scripting, so I figured that i should try making a Delay command.
This is what i got

code:
function OnEvent_ChatWndSendMessage(ChatWnd, sMessage)
{
        var stringMessage = sMessage;
        var arrayMessage = stringMessage.split(";");

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

        if (stringCommand == "#Delay")
        {
                MsgPlus.AddTimer("timerDelay",variableDelay);
                OnEvent_Timer("timerDelay")
                {
                        return stringSendMessage;
                }
        }
        else return sMessage
}



Something is wrong since all that happens when i type "#Delay;1000;1 second delay" is that i just send excactly that message. The outcome i want is that only the last part, "1 second delay" should be sent, and 1 second after i type the delay command.
So... What is wrong? How to correct it?
Help me please.
07-07-2006 10:04 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