thiệt cái code của bác mình nhìn vào cũng hoa hết mắt, mình share cái code này cho bác, fix lại tí chắc là đc tại vì code đang chạy của thằng imagetyperz
Code:
//Set apikey 2capthca
var apikey='';
iimSet("apikey",apikey);
var submit_button="TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:recaptcha-demo-form ATTR=ID:recaptcha-demo-submit";
//Set code
var macro = "CODE:";
macro += "SET !EXTRACT_TEST_POPUP NO" + "\n";
macro += "SET !ERRORIGNORE YES" + "\n";
macro += "SET !TIMEOUT_PAGE 1" + "\n";
macro += "'SET !TIMEOUT_STEP 1" + "\n";
macro += "URL GOTO=javascript:((function(){var<SP>k=document.querySelector('[src^=\"https://www.google.com/recaptcha/api2/anchor?\"]').src.split('?k=')[1].split('&')[0];document.getElementById('g-recaptcha-response').style.display='';document.getElementById('g-recaptcha-response').textContent=k;}))();" + "\n";
macro += "SET !TIMEOUT_PAGE 60" + "\n";
macro += "TAG POS=1 TYPE=TEXTAREA FORM=ID:* ATTR=ID:g-recaptcha-response EXTRACT=TXT" + "\n";
macro += "SET k {{!EXTRACT}}" + "\n";
macro += "SET !EXTRACT NULL" + "\n";
macro += "SET url {{!URLCURRENT}}" + "\n";
macro += "TAB OPEN" + "\n";
macro += "TAB T=2" + "\n";
macro += "URL GOTO=http://2captcha.com/in.php?key={{apikey}}&method=userrecaptcha&googlekey={{k}}&pageurl={{url}}&affiliateid=305828" + "\n";
macro += "WAIT SECONDS=1" + "\n";
macro += "TAG POS=1 TYPE=* ATTR=TXT:* EXTRACT=TXT" + "\n";
macro += "SET captid {{!EXTRACT}}" + "\n";
macro += "SET !EXTRACT NULL" + "\n";
macro += "URL GOTO= http://2captcha.com/res.php?key={{apikey}}&action=get&id={{captid}}" + "\n";
var macro2 = "CODE:";
macro2 += "TAG POS=1 TYPE=* ATTR=TXT:* EXTRACT=TXT" + "\n";
var macro3 = "CODE:";
macro3 += "TAG POS=1 TYPE=* ATTR=TXT:* EXTRACT=TXT" + "\n";
macro3 += "SET answer {{!EXTRACT}}" + "\n";
macro3 += "TAB CLOSE" + "\n";
macro3 += "WAIT SECONDS=0.3" + "\n";
macro3 += "TAG POS=1 TYPE=TEXTAREA FORM=ID:* ATTR=ID:g-recaptcha-response CONTENT={{answer}}" + "\n";
macro3 += submit_button + "\n";
//Run code
iimPlay(macro);
iimPlay(macro2);
var answer=iimGetLastExtract().trim();
while(answer=="CAPCHA_NOT_READY")
{
iimPlay("CODE:WAIT SECONDS=5");
iimPlay("CODE:REFRESH");
iimPlay(macro2);
var answer=iimGetLastExtract().trim();
}
iimPlay(macro3);
}