Go to documentation repository
Page History
...
- id is a required argument. It specifies the timer ID. Allowed values are int or string type.
- milliseconds is a required argument. It specifies the period with which the timer will trigger if it is not stopped by the KillTimer method. It is specified in milliseconds. Allowed values are int type.
...
Code Block |
---|
if(Event.SourceType=="LOCAL_TIMER" && Event.Action=="TRIGGERED" && Event.SourceId==333) //it is possible to use Event.SourceId == "333", i.e. string ID
{
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
} |
Overview
Content Tools