What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » So is it impossible to make a Sleep() function?

2 votes - 3 average   So is it impossible to make a Sleep() function?
Author: Message:
ben_b
Junior Member
**

Avatar

Posts: 33
– / Male / –
Joined: Jul 2003
RE: So is it impossible to make a Sleep() function?
Exactly... I haven't been able to get the timers to work so I was looking for a little more help on how to make the timers work... here's my current code...

code:
//Check for /command
function OnEvent_ChatWndSendMessage(ChatWnd, sMessage) {
    if(sMessage.charAt(0) == "/"){
        return parseCommands(sMessage,ChatWnd);
    }
    else{
        return sMessage;
    }
}

//Add the /command in command list
function OnGetScriptCommands(){
    var commands = '<ScriptCommands>';
        commands+='<Command>';
            commands+='<Name>toastspammer</Name>';
            commands+='<Description>Appear Offline and then back Online</Description>';
            commands+='<Parameters/>';
        commands+='</Command>';
    commands+='</ScriptCommands>';
    return commands;
}

//Parse commands
function parseCommands(sMessage,iOriginWnd) {   
    var x = 0;
   
    do
        {
            Messenger.MyStatus = 2;
            Messenger.MyStatus = 3;
            x = x+1
            //Sleep here
        }
    while (x < 3); //Number of times to sign on and off
                 //NOTICE: Messenger can't handle very many without
                 //          slowing down or possibly crashing, unless
                 //          the timer is enabled so they don't all occur
                 //          at the same time.
       
    return "";
}
07-14-2006 09:55 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
So is it impossible to make a Sleep() function? - by segosa on 06-26-2006 at 10:38 PM
RE: So is it impossible to make a Sleep() function? - by mathieumg on 06-26-2006 at 11:07 PM
RE: So is it impossible to make a Sleep() function? - by segosa on 06-26-2006 at 11:13 PM
RE: So is it impossible to make a Sleep() function? - by CookieRevised on 06-26-2006 at 11:48 PM
RE: So is it impossible to make a Sleep() function? - by Riveck on 06-27-2006 at 12:14 AM
RE: RE: So is it impossible to make a Sleep() function? - by b0rna on 06-27-2006 at 12:42 AM
RE: So is it impossible to make a Sleep() function? - by TheBlasphemer on 06-27-2006 at 01:16 AM
RE: RE: So is it impossible to make a Sleep() function? - by segosa on 06-27-2006 at 07:11 AM
RE: So is it impossible to make a Sleep() function? - by b0rna on 06-27-2006 at 01:28 AM
RE: So is it impossible to make a Sleep() function? - by -dt- on 06-27-2006 at 02:36 AM
RE: So is it impossible to make a Sleep() function? - by ben_b on 07-14-2006 at 08:18 AM
RE: So is it impossible to make a Sleep() function? - by CookieRevised on 07-14-2006 at 09:51 AM
RE: So is it impossible to make a Sleep() function? - by ben_b on 07-14-2006 at 09:55 AM
RE: So is it impossible to make a Sleep() function? - by sbegouin on 07-24-2006 at 10:27 PM
RE: RE: So is it impossible to make a Sleep() function? - by segosa on 07-25-2006 at 11:18 AM
RE: RE: RE: So is it impossible to make a Sleep() function? - by deAd on 07-25-2006 at 06:55 PM
RE: So is it impossible to make a Sleep() function? - by sbegouin on 07-25-2006 at 06:10 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