private async void ImageRecognitionAcceptMatchButton() { bool championSearchbox = false; bool acceptButton = false; while (!championSearchbox || Options.ContiuouslyMonitorAcceptMatch || CancelAutoAcceptMatch) { TakeFullDesktopScreenShot(); if (!championSearchbox) { championSearchbox = await ImageRecognition.AutoFindBoostButtonImageRecognition(); } TakeFullDesktopScreenShot(); if (!acceptButton) { acceptButton = await ImageRecognition.AutoAcceptImageRecognition(); } if (acceptButton) { Actions.ClickAcceptButton(); SetLiveStatusText("Accepted Match", Color.Green); if (Options.ContiuouslyMonitorAcceptMatch) { acceptButton = false; } } } }