Shoutbox

how to run the function every 10 mins? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: how to run the function every 10 mins? (/showthread.php?tid=88991)

how to run the function every 10 mins? by ainain on 02-06-2009 at 04:01 PM

how to run the function every 10 mins?


RE: how to run the function every 10 mins? by Jesus on 02-06-2009 at 05:05 PM

take a look at the MsgPlus.AddTimer() function.

quote:
Originally posted by Official Scripting Documentation
MsgPlus::AddTimer
The MsgPlus::AddTimer function creates a new timer event for your script. The OnEvent_Timer event will be fired once after the specified time interval elapses.

Syntax
AddTimer(
    [string] TimerId,
    [number] Elapse
);


Edit: look here for the scripting documentation if you don't have it already.
RE: how to run the function every 10 mins? by Spunky on 02-06-2009 at 05:49 PM

Because it's milliseconds too, the interval would be:

(1000x60)x10