guessAndSolveAnyCaptcha ( boolean _enable_towcaptcha , boolean _enable_anticaptcha , string _methode , string _url , boolean _pass_to_firefox ) : boolean
The
guessAndSolveAnyCaptcha function allows you to automatically solve any type of captcha by automatically guessing the type of the captcha. It uses universalCaptchaSolver technology and the 2captcha and anticaptcha APIs.Example (firefox mode)
firefox("browse", "https://2captcha.com/demo/recaptcha-v2")
firefox("waitLoaded")
out = guessAndSolveAnyCaptcha(true,true,"firefox")
if (out == false){
console("Not working")
}else{
console("working")
}
Example (Mode 'internalRequests')
out = guessAndSolveAnyCaptcha(true,true,"internalRequests","https://2captcha.com/demo/recaptcha-v2",true)
if (out == false){
console("Not working")
}else{
console("working")
}
Parameters
_enable_towcaptcha (optional)
false: disabling the 2captcha API, true: enabling the 2captcha API (default)
_enable_anticaptcha (optional)
false: disabling the anticaptcha API, true: enabling the anticaptcha API (default)
_methode (optional)
"firefox": switch to Firefox (default),"internalRequests": Internet request mode
_url (optional)
This parameter should only be set if the function is used in "internalRequests" mode and it corresponds to the URL of the captcha to resolve.
_pass_to_firefox (optional)
This parameter should only be set if the function is used in "internalRequests" mode. true(By default): in case the function does not succeed in "internalRequests" mode, it will automatically switch to Firefox mode. false: Disables automatic switching to Firefox mode in case of failure