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:
leachy08
Junior Member
**


Posts: 35
Joined: Jul 2006
RE: Delay a function
To add a timer you can use this code to start the timer:

code:
MsgPlus.AddTimer("atimername", 1000)

And then this code to find when the timer's time interval is reached.

code:
function OnEvent_Timer(TimerId) {
     if (TimerId == "atimername") {
          //Timer interval has been met.
     }
}


If you want to make the timer run just once then you can use:
MsgPlus.CancelTimer("atimerid") after you code in the OnEvent_Timer function above (Just after comment).

Alternatively if you want to make your program goto sleep using a Sleep() Sleep Function
But it will not let you use WLM whilst it is sleeping.
08-10-2006 07:29 AM
Profile E-Mail 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