The SetTimer method is used to start the timer.
The syntax for accessing the method is:
function SetTimer (id : int, milliseconds : int) |
Method arguments:
Example. 2 seconds after the macro 1 is executed, start recording on camera 1.
if(Event.SourceType=="LOCAL_TIMER" && Event.Action=="TRIGGERED" && Event.SourceId==333)
{
KillTimer(333);
DoReactStr("CAM","1","REC","");
}
if(Event.SourceType=="MACRO"&& Event.SourceId == "1" && Event.Action == "RUN")
{
SetTimer(333,2000); //333 - id, 2000 msec = 2 sec - period
} |