delay_call

Method of IScriptApplication

Calls the given callback after the given delay (in milliseconds)

Return Value

JavaScript

var pnTimerID = ScriptApplication.delay_call(onTimer, nDelay, bRepeat);

Visual Basic Script

pnTimerID = ScriptApplication.delay_call onTimer, nDelay, bRepeat

C++

long nTimerID;
HRESULT hr = ScriptApplication.delay_call(onTimer, nDelay, bRepeat, &nTimerID);