Exemple #1
0
        private async void OnSkipAd(object sender, HotkeyEventArgs e)
        {
            try
            {
                TakeAndSaveScreenshot(ScreenshotImageUri);

                var skipAdLocation = await _apiClient.SkipAdImageLocationAsync(ScreenshotImageUri);

                if (skipAdLocation is null)
                {
                    return;//do not proceed with clicking
                }
                else
                {
                    _mouseController.SimulateClick(new System.Drawing.Point(DesktopLocationX(skipAdLocation.X), skipAdLocation.Y));
                }
            }
            catch { }
        }