Captcha solving macro

davep2

New Member
VIP
Joined
Feb 26, 2019
Messages
33
Reaction score
1
Achievement
Or can i adapt the following code:

var AcKey = "Your anti-captcha API Key";
var image = await GetImageByXpath('//*[@id="captcha_one"]');
if(image)
{
var result = await ACSolve({
"clientKey":AcKey,
"task":
{
"type":"ImageToTextTask",
"body":image,
"phrase":false,
"case":false,
"numeric":false,
"math":0,
"minLength":0,
"maxLength":0
}
}, 150);

//success without error
if(result && result.errorId == 0)
{
SetByXpath(GenerateXpath("input", "name", "ct_captcha0"), "value", result.solution.text);
await Delay(1000);
await ClickByXpath(GenerateXpath("input", "type", "submit"));
 

weblord

New Member
Premium
Joined
Dec 3, 2019
Messages
51
Reaction score
4
Achievement
i think that's an image captcha
 

davep2

New Member
VIP
Joined
Feb 26, 2019
Messages
33
Reaction score
1
Achievement
Yes, the captcha is a image, i just can't adapt the above code to work with it.
I should change the line code: var image = await GetImageByXpath('//*[@id="captcha_one"]'); but don't know what to write.
 
  • Like
Reactions: weblord

weblord

New Member
Premium
Joined
Dec 3, 2019
Messages
51
Reaction score
4
Achievement
is this your reference for writing that script?

have you tested that already?
i think in freebitco.in signup page and login page is image captcha you may test it there on that website.
Yes, the captcha is a image, i just can't adapt the above code to work with it.
I should change the line code: var image = await GetImageByXpath('//*[@id="captcha_one"]'); but don't know what to write.
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu