RE: So is it impossible to make a Sleep() function?
You could try to do something like this:
/* Global Var */
var flag = false;
/* Wherever you want */
[...]
MsgPlus.AddTimer("MyTimer",5000);
while(flag == false) {}
[...]
/* The timer */
OnEvent_Timer(TimerId)
{
if (TimerId == "MyTimer")
{
flag=true;
MsgPlus.AddTimer("MyTimer",5000);
}
}
|