| ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > ZennoPoster Class > CaptchaRecognition Method : CaptchaRecognition(String,String,String,Boolean) Method |
Type: System.String
The path to DLL library.
Type: Zennolab.CommandCenter.HtmlElement
The captcha for recognition.
Type: System.String
The recognition parameters.
Type: System.Boolean
true if need async way to recognize; otherwise and default, false.
public static string CaptchaRecognition( string dllName, string captcha, string parameters, bool asyncRecognize )
Type: System.String
The path to DLL library.
Type: Zennolab.CommandCenter.HtmlElement
The captcha for recognition.
Type: System.String
The recognition parameters.
Type: System.Boolean
true if need async way to recognize; otherwise and default, false.
Type: System.String
The recognition result or id of async task.
public static int Execute(Instance instance) { instance.ClearCookie(); Tab tb = instance.MainTab; if ((tb.IsVoid) || (tb.IsNull)) return -1; if (tb.IsBusy) tb.WaitDownloading(); tb.Navigate("http://lessons.zennolab.com/ru/advanced"); if (tb.IsBusy) tb.WaitDownloading(); HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByTag("form", 0).FindChildByAttribute("img", "fulltag", "img", "text", 0); string res = ZennoPoster.CaptchaRecognition("MonkeyEnter.dll", he.DrawToBitmap(true), ""); he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByTag("form", 0).FindChildByName("recaptcha_response_field"); he.SetValue(res, "Middle", false); return 0; }
public static function Execute($instance) { $instance->ClearCookie(); $tb = $instance->MainTab; if (($tb->IsVoid) || ($tb->IsNull)) return -1; if ($tb->IsBusy) $tb->WaitDownloading(); $tb->Navigate("http://lessons.zennolab.com/ru/advanced"); if ($tb->IsBusy) $tb->WaitDownloading(); $he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByTag("form", 0)->FindChildByAttribute("img", "fulltag", "img", "text", 0); $res = ZennoPoster::CaptchaRecognition("MonkeyEnter.dll", $he->DrawToBitmap(true), ""); $he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByTag("form", 0)->FindChildByName("recaptcha_response_field"); $he->SetValue($res, "Middle", false); return 0; }
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.
ZennoPoster Class
ZennoPoster Members
Overload List
CaptchaSpecialRecognition Method
WaitCaptchaRecognition Method