Exemplo n.º 1
0
 private void StopRecording()
 {
     RecordingForm.StopForm();
     InterceptKeys.StopHook();
     InterceptMouse.StopHook();
     XMLRecorder.Serialize();
 }
Exemplo n.º 2
0
        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);
            }
        }