Exemplo n.º 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);
 }
Exemplo n.º 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();
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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();
 }