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); }
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(); }
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); }
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); }
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); }
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(); }