Esempio n. 1
0
        /// <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;
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Instantiates a new instance of the <see cref="MacroRoutineExecutor"/> class
 /// </summary>
 /// <param name="actionExecutor"></param>
 public MacroRoutineExecutor(IMacroActionExecutor actionExecutor)
 {
     this._actionExecutor = actionExecutor;
 }
Esempio n. 3
0
 /// <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);
 }
Esempio n. 4
0
 /// <summary>
 /// Executes the action
 /// </summary>
 /// <param name="executor"></param>
 /// <param name="context"></param>
 public abstract void Execute(IMacroActionExecutor executor, IExecutionContext context);