示例#1
0
文件: Form1.cs 项目: githubjimme1/bot
 private void StopRecording()
 {
     RecordingForm.StopForm();
     InterceptKeys.StopHook();
     InterceptMouse.StopHook();
     XMLFile.Serialize();
 }
示例#2
0
文件: Form1.cs 项目: githubjimme1/bot
        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);
            }
        }