/// <summary> /// Executes the call method action /// </summary> /// <param name="executor"></param> /// <param name="context"></param> public override void Execute(IMacroActionExecutor executor, IExecutionContext context) { this._repeatCountdown--; // If the countdown is less than or equal to 0 then execute if (this._repeatCountdown <= 0) { executor.Execute(this, context); // Set the repeat countdown to the default this._repeatCountdown = this._repeatEvery; } }
/// <summary> /// Instantiates a new instance of the <see cref="MacroRoutineExecutor"/> class /// </summary> /// <param name="actionExecutor"></param> public MacroRoutineExecutor(IMacroActionExecutor actionExecutor) { this._actionExecutor = actionExecutor; }
/// <summary> /// Executes the simulate key action /// </summary> /// <param name="executor"></param> /// <param name="context"></param> public override void Execute(IMacroActionExecutor executor, IExecutionContext context) { executor.Execute(this, context); }
/// <summary> /// Executes the action /// </summary> /// <param name="executor"></param> /// <param name="context"></param> public abstract void Execute(IMacroActionExecutor executor, IExecutionContext context);