Well, first you need to create one with
code:
MsgPlus.AddTimer("MyTimer", 500);
This will create a timer called MyTimer with an interval of 500 milliseconds.
Then, you need an event:
code:
function OnEvent_Timer(sTimerId) {
if(sTimerId == "MyTimer") {
//Do progress bar stuff here
MsgPlus.AddTimer("MyTimer", 500); //Repeat
}
}
This will create a "timed loop", and when you're done with it, you need to stop the timer with MsgPlus.CancelTimer("MyTimer") and make sure that MsgPlus.AddTimer doesn't get called again.