Ejemplo n.º 1
0
        private static async void GetNoCaptcha(DriverStruct drStr)
        {
            drStr.IsEnabled = false;
            var result = await GetCaptcha.GetNoCaptcha(Settings.Default.AntigateKey, drStr);

            drStr.IsEnabled = true;
            if (!result.Answer.StartsWith("Error message") || result.Answer.Contains("Stopped") ||
                result.Answer.Contains("Отменена задача"))
            {
                Utils.CaptchaQueue = result;
            }
        }
Ejemplo n.º 2
0
        private static async void GetNoCaptcha()
        {
            try
            {
                var result = await GetCaptcha.GetNoCaptcha(Settings.Default.ApiKey);

                if (result.Answer.StartsWith("Error message"))
                {
                    if (result.Answer.Contains("Error message: Stopped"))
                    {
                        return;
                    }
                    //Informer.RaiseOnResultReceived(result.Answer);
                }

                Utils.CaptchaQueue = result;
            }
            catch (Exception)
            {
            }
        }