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.