Example #1
0
 private void AddEvent(IRecorderEvent e)
 {
     if(_windowTracker.HasActiveWindowChanged())
     {
         LogWindowInfo();
         OnLogAction(string.Format("Active Window Changed to: {0} id: {0}", _windowTracker.GetActiveWindowTitle(), _windowTracker.GetActiveWindowId().ToInt64()));
         RawEvents.Add(new TransitionEvent() { TransitionType = TransitionType.ActiveWindowChanged });
     }
     RawEvents.Add(e);
 }
Example #2
0
 private void DoProcessKey(List <ITask> taskList, StringBuilder sb, IRecorderEvent lastEvent)
 {
     taskList.Add(new KeyboardTask()
     {
         CommandText = sb.ToString()
     });
     _keyTickInterval.End = lastEvent.Tick;
     AddWait(taskList, _keyTickInterval.ToMilliseconds());
     sb.Clear();
 }
Example #3
0
        private void AppendKeyEvents(IRecorderEvent e, StringBuilder sb)
        {
            var k = (KeyEvent)e;

            if (_keyTickInterval.Start <= 0)
            {
                _keyTickInterval.Start = k.Tick;
            }
            _keyTickInterval.End = k.Tick;
            sb.Append(k.Value);
        }
Example #4
0
 private void AddEvent(IRecorderEvent e)
 {
     if (_windowTracker.HasActiveWindowChanged())
     {
         LogWindowInfo();
         OnLogAction(string.Format("Active Window Changed to: {0} id: {0}", _windowTracker.GetActiveWindowTitle(), _windowTracker.GetActiveWindowId().ToInt64()));
         RawEvents.Add(new TransitionEvent()
         {
             TransitionType = TransitionType.ActiveWindowChanged
         });
     }
     RawEvents.Add(e);
 }
Example #5
0
 private void AppendKeyEvents(IRecorderEvent e, StringBuilder sb)
 {
     var k = (KeyEvent)e;
     if (_keyTickInterval.Start <= 0)
         _keyTickInterval.Start = k.Tick;
     _keyTickInterval.End = k.Tick;
     sb.Append(k.Value);
 }
Example #6
0
 private void DoProcessKey(List<ITask> taskList, StringBuilder sb, IRecorderEvent lastEvent)
 {
     taskList.Add(new KeyboardTask() { CommandText = sb.ToString() });
     _keyTickInterval.End = lastEvent.Tick;
     AddWait(taskList, _keyTickInterval.ToMilliseconds());
     sb.Clear();
 }