public string GetCaptcha(string AccountKey, string IagePath) { string check = String.Empty; do { AntiCaptcha anticap = new AntiCaptcha(); check = anticap.GetText(AccountKey, IagePath, 10000); if (check == "ERROR_NO_SLOT_AVAILABLE") { //add your action here } lock (this) { //log_program(DateTime.Now + " = got answer: " + check); } Thread.Sleep(2000); }while ((check == "ERROR_NO_SLOT_AVAILABLE")); return(check); }
public string GetCaptcha(string AccountKey,string IagePath) { string check = String.Empty; do { AntiCaptcha anticap = new AntiCaptcha(); check = anticap.GetText(AccountKey, IagePath, 10000); if (check == "ERROR_NO_SLOT_AVAILABLE") { //add your action here } lock (this) { //log_program(DateTime.Now + " = got answer: " + check); } Thread.Sleep(2000); } while ((check == "ERROR_NO_SLOT_AVAILABLE")); return check; }