Ejemplo n.º 1
0
 public DelayBuffer(KeyboardAndMouseOutput keyboardOut, UserInterface ui)
 {
     _KeyboardOut = keyboardOut;
     _Queue       = new FixedSizeQueue(512);
     _Timer       = new Timer(TimerTick, null, Timeout.Infinite, Timeout.Infinite);
     _UI          = ui;
 }
Ejemplo n.º 2
0
 public KeyboardAndMouseInput(UserInterface ui, KeyboardAndMouseOutput output, FiddleConfig config, bool inDebugMode)
 {
     _Ui                = ui;
     _OutBuffer         = new DelayBuffer(output, ui);
     _Output            = output;
     _Config            = config;
     _NextFiddleEvents  = new Timer(this.FiddleHandler, null, Timeout.Infinite, Timeout.Infinite);
     _InactivityTimer   = new Timer(this.InactivityTimerHandler, null, Timeout.Infinite, Timeout.Infinite);
     _InDebugMode       = inDebugMode;
     _Rand              = new Random((int)(Utility.GetMachineTime().Ticks & 0x00000000ffffffff));
     _MinimumDelay      = TimeSpan.MaxValue;
     _MinimumKeystrokes = Int32.MaxValue;
 }