Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
if(Event.SourceType=="LOCAL_TIMER" && Event.Action=="TRIGGERED" && Event.SourceId==333) // можно указать Event.SourceId == "333", т.е. использовать тип идентификатора string
{
  var actuallyKilled = KillTimer(333); 
  if(actuallyKilled == 1)
  {
     DoReactStr("CAM","1","REC",""); 
  }
}

if(Event.SourceType=="MACRO"&& Event.SourceId == "1" && Event.Action == "RUN")
{
  SetTimer(333,2000); //333 - id, 2000 msec = 2 sec - period
}