What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Delay a function

Delay a function
Author: Message:
Inuyasha
New Member
*


Posts: 6
35 / Male / –
Joined: Aug 2006
O.P. RE: RE: Delay a function
quote:
Originally posted by RaceProUK
Why have you put OnEvent_Timer() inside the other function? Put it outside.

You mean like this? :
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{
    MsgPlus.AddTimer("yoyo", 1000)
   
    function OnEvent_Timer(TimerId)
        {
                 if (TimerId == "yoyo")
                 {
                  ChatWnd.SendMessage("jeej");
                //Timer interval has been met.
                 }
        }
   
   
    if (Message == "=D")
    {
       
        ChatWnd.SendMessage(":')");
    }
}   


(Srry, but im yet a noob with this stuff :P)

This script won't work either.

This post was edited on 08-10-2006 at 09:30 AM by Inuyasha.
08-10-2006 09:29 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Delay a function - by Inuyasha on 08-09-2006 at 06:01 PM
RE: Delay a function - by Spunky on 08-09-2006 at 08:49 PM
RE: Delay a function - by Inuyasha on 08-10-2006 at 06:38 AM
RE: Delay a function - by leachy08 on 08-10-2006 at 07:29 AM
RE: Delay a function - by Inuyasha on 08-10-2006 at 09:19 AM
RE: Delay a function - by RaceProUK on 08-10-2006 at 09:23 AM
RE: RE: Delay a function - by Inuyasha on 08-10-2006 at 09:29 AM
RE: Delay a function - by RaceProUK on 08-10-2006 at 09:32 AM
RE: RE: Delay a function - by Inuyasha on 08-10-2006 at 09:39 AM
RE: Delay a function - by RaceProUK on 08-10-2006 at 09:43 AM
RE: RE: Delay a function - by Inuyasha on 08-10-2006 at 09:49 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