private void StopRecording() { RecordingForm.StopForm(); InterceptKeys.StopHook(); InterceptMouse.StopHook(); XMLRecorder.Serialize(); }
private static void SendKeysToWindow(object obj) { List <Recording> list = XMLRecorder.Deserialize(); foreach (var recordObj in list) { if (Token.IsCancellationRequested) { break; } SendDelayToWindow(recordObj.Delay); SendMouseToWindow(recordObj.MouseClick, recordObj.X, recordObj.Y); SendKeyToWindow(recordObj.KeyPress); } }