Содержание

recognizeCaptcha

Gets the text of the specified captcha, recognized for the specified service of captchas recognition in accordance with API AntiGate.

Syntax

recognizeCaptcha = function(aImageElement, aAddress, aKey, aPhrase
  aMinLen, aMaxLen, aNumeric, aRegSense, aCalc, aRussian);
 
recognizeCaptcha = function(aImage, aAddress, aKey, aPhrase=0, aMinLen = 0,
  aMaxLen, aNumeric, aRegSense, aCalc, aRussian);

Parameters

Returned value

Notes

Examples

  1. loadURI('http://www.google.com/recaptcha/learnmore');
    //Get the captcha image
    var image = getElement('img',0,['src'],['google.com/recaptcha/']);
    //Send the image to recognize with service at 109.206.172.194
    var captchatext = recognizeCaptcha(image,'109.206.172.194','MyKey').text;
    //If the text is not empty, then enter the text to the input field
    if (captchatext !== ''){
      var input = getElement('input',0,['name','id'],['recaptcha_response_field','recaptcha_response_field'],true);
      clickElement(input);
      typeIn(captchatext);
    }