// Captcha recognition
he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByTag("form", 1).FindChildByAttribute("img", "fulltag", "img", "text", 1);
if (he.IsVoid) return -1;
var res = ZennoPoster.CaptchaRecognition("DeCaptcher.dll", he, "");
// Setting captcha text
he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByTag("form", 1).FindChildByName("captcha_response");
if (he.IsVoid) {
he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByTag("form", 1).FindChildById("captcha_response");
}
if (he.IsVoid) {
he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByTag("form", 1).FindChildByAttribute("input:text", "fulltag", "input:text", "text", 4);
}
if (he.IsVoid) return -1;
// Set focus on this html elemet (it's necessarily for SendString of SentText)
he.Focus();
// Enter password again with delay 100-200 ms
Emulator.SendString(instance.MainTab.Handle, res, 100, 200);