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