public override Action[] Schedule(long timeScheduleFrom) { // play macro to be repeated Tube.PlayMacro(macro); // schedule the repeat ActionRepeat scheduledCopy = new ActionRepeat( this.DelayMS, this.macroRepeater, this.macro) { ScheduledTick = timeScheduleFrom + this.delayMS, Name = macroRepeater }; return(new Action[] { scheduledCopy }); }
public override void Play() { // play macro that initiated the repeater // it'll schedules another instance of ActionRepeater (this) Tube.PlayMacro(macroRepeater); }