private void T_Elapsed(object sender, ElapsedEventArgs e) { var coords = ImageRecognition.GetCoordinates(Properties.Resources.Accept_1920x1080); if (coords != null) { MouseController.MoveAndLeftClick(coords.X, coords.Y); MouseController.LeftClick(); } }
private void RecognitionTimer_Elapsed(object sender, ElapsedEventArgs e) { var coords = ImageRecognition.GetCoordinates(Properties.Resources.lockImage); if (coords != null) { StopVoid(true); MouseController.MoveAndLeftClick(Agent.SelectedAgent.X, Agent.SelectedAgent.Y); Thread.Sleep(10); for (int i = 0; i < 5; i++) { MouseController.LeftClick(); } MouseController.MoveAndLeftClick(coords.X, coords.Y); Thread.Sleep(10); for (int i = 0; i < 5; i++) { MouseController.LeftClick(); } } }