i using script, although main motive click check box, capture captcha image, upload captcha solving service , post output google recaptcha.
version build=8820413 set !extract_test_popup no set !errorignore yes set !timeout_page 900 set !timeout_step 900 tab t=1 url goto=https://www.google.com/recaptcha/api2/demo filedelete name=d:\captcha.jpg wait seconds=3 tag pos=1 type=div attr=id:recaptcha-anchor wait seconds=5 ondownload folder=d:\ file=captcha.jpg wait=yes tag pos=1 type=img attr=id:recaptcha<sp>challenge<sp>image content=event:save_element_screenshot wait seconds=3 tab open tab t=2 url goto=http://www.9kw.eu/grafik/form.html tag pos=1 type=input attr=name:apikey content=i put api key here tag pos=1 type=input attr=name:prio content=0 tag pos=1 type=input:checkbox form=action:/index.cgi attr=name:selfsolve content=no tag pos=1 type=input:checkbox form=action:/index.cgi attr=name:confirm content=no tag pos=1 type=input:checkbox form=action:/index.cgi attr=name:case-sensitive content=no tag pos=1 type=input attr=name:source content=imacros tag pos=1 type=input attr=name:file-upload-01 content=d:\captcha.jpg tag pos=1 type=input attr=type:submit tag pos=1 type=input attr=name:result extract=txt tab close tab t=1 tag pos=1 type=input:text attr=id:default-response content={{!extract}} 'press roll button tag pos=1 type=div attr=id:recaptcha-verify-button wait seconds=6 tag pos=1 type=button form=id:form attr=id:claimbtn wait seconds=12630
full example imacros recaptcha v2 2 files:
recaptcha_v2.iim
version build=8920312 recorder=fx set !extract_test_popup no set !errorignore no set !timeout_page 999 set !timeout_step 999 tab closeallothers ' ' imacros script created 9kw.eu ' find more here: http://www.9kw.eu/ ' ' script fill captcha of recaptcha v2 demo. ' ' note users firefox message "firefox prevented page automatically reloading.": ' uncheck option "warn me when pages try redirect" in browser ' find checkbox under options > advanced > general > accessibility ' path captcha image timestamp ' tempfolder c:\ or c:\temp under windows or /tmp under linux set tempfolder c:\ ' tempslash (path slashs tempfolder) , htmlfile recaptcha_v2.html set tempslash c:/ ' tempfile set tempfile captcha_{{!now:yyyymmdd_hhnnss}}.jpg ' step 1: config 9kw.eu apikey set apikey your_api_key 'and priority (prio 1-20) set prio 0 ' step 2: save captcha picture local disk tab t=1 url goto=https://www.google.com/recaptcha/api2/demo frame name=i0_* event type=click selector="#recaptcha-anchor>div:nth-of-type(5)" button=0 wait seconds=3 ondownload folder={{tempfolder}} file={{tempfile}} wait=yes frame name=i1_* tag pos=1 type=div attr=id:rc-imageselect content=event:save_element_screenshot wait seconds=5 tab open tab t=2 url goto=file:///{{tempslash}}recaptcha_v2.html?file:///{{tempslash}}{{tempfile}} wait seconds=5 filedelete name={{tempfolder}}{{tempfile}} tag pos=1 type=div attr=* content=event:save_element_screenshot tab close 'wait random number (1 5) of seconds set randomnumber eval("math.floor(math.random()*5 + 1);") wait seconds={{randomnumber}} 'syntaxcheck: api key, prio set apikey eval("var s=\"{{apikey}}\"; if(s.match(/^[a-za-z0-9]+$/) && s.length <= 50 && s.length >= 5) s; else macroerror(\"api key wrong.\")") set prio eval("var s=\"{{prio}}\", d = parsefloat(s); if(d >= 0 && d <= 20) d; else macroerror(\"value(prio) not in set range.\")") 'step 3: open new tab, , go 9kw.eu, , submit captcha picture tab open tab t=2 url goto=http://www.9kw.eu/grafik/form.html 'the apikey used identify each of our customers, can our page. assigned content. tag pos=1 type=input attr=name:apikey content={{apikey}} 'priority in our system min. 0 max. 20 (cost +0-20) tag pos=1 type=input attr=name:prio content={{prio}} 'options form. see more under http://www.9kw.eu/grafik/form.html , http://www.9kw.eu/api.html tag pos=1 type=input:checkbox form=action:/index.cgi attr=name:selfsolve content=no tag pos=1 type=input:checkbox form=action:/index.cgi attr=name:confirm content=no tag pos=1 type=input:checkbox form=action:/index.cgi attr=name:case-sensitive content=no tag pos=1 type=input:checkbox form=action:/index.cgi attr=name:nomd5 content=yes 'we need numbers captcha tag pos=1 type=input:checkbox form=action:/index.cgi attr=name:numeric content=yes tag pos=1 type=input attr=name:source content=imacros 'the path of captcha picture saved assigned content tag pos=1 type=input attr=name:file-upload-01 content={{tempfolder}}{{tempfile}} 'submit formdata 9kw.eu tag pos=1 type=input attr=type:submit 'extract captchaid captcha submit tag pos=1 type=input attr=name:captchaid extract=txt set captchaid {{!extract}} 'clean !extract variable next task set !extract null 'extract characters recoginzed picture of captcha. tag pos=1 type=input attr=name:result extract=txt 'step 4: check captcha answer (text or nothing #eanf#) set answer eval("if (\"{{!extract}}\" == \"#eanf#\") {var x = \"\";} else {var x = \"{{!extract}}\";} x;") 'clean !extract variable next task set !extract null tab close 'display extracted data (only debug) 'prompt {{captchaid}} 'step 5: fill recognized characters verification box (click pictures 1..9) tab t=1 frame name="i1_*" set !errorignore yes set n1 eval("var s=\"{{answer}}\"; if(s.match(/^[0-9]+$/) && s.length <= 9 && s.length >= 2) s.substr(0,1); else macroerror(\"captcha answer wrong.\")") tag pos={{n1}} type=img attr=src:https://www.google.com/recaptcha/api2/payload?c=* set n2 eval("var s=\"{{answer}}\"; if(s.match(/^[0-9]+$/) && s.length <= 9 && s.length >= 2) s.substr(1,1); else macroerror(\"captcha answer wrong.\")") tag pos={{n2}} type=img attr=src:https://www.google.com/recaptcha/api2/payload?c=* set n3 eval("var s=\"{{answer}}\"; if(s.match(/^[0-9]+$/) && s.length <= 9 && s.length >= 2) s.substr(2,1); else macroerror(\"captcha answer wrong.\")") tag pos={{n3}} type=img attr=src:https://www.google.com/recaptcha/api2/payload?c=* set n4 eval("var s=\"{{answer}}\"; if(s.match(/^[0-9]+$/) && s.length <= 9 && s.length >= 2) s.substr(3,1); else macroerror(\"captcha answer wrong.\")") tag pos={{n4}} type=img attr=src:https://www.google.com/recaptcha/api2/payload?c=* set n5 eval("var s=\"{{answer}}\"; if(s.match(/^[0-9]+$/) && s.length <= 9 && s.length >= 2) s.substr(4,1); else macroerror(\"captcha answer wrong.\")") tag pos={{n5}} type=img attr=src:https://www.google.com/recaptcha/api2/payload?c=* set n6 eval("var s=\"{{answer}}\"; if(s.match(/^[0-9]+$/) && s.length <= 9 && s.length >= 2) s.substr(5,1); else macroerror(\"captcha answer wrong.\")") tag pos={{n6}} type=img attr=src:https://www.google.com/recaptcha/api2/payload?c=* set n7 eval("var s=\"{{answer}}\"; if(s.match(/^[0-9]+$/) && s.length <= 9 && s.length >= 2) s.substr(6,1); else macroerror(\"captcha answer wrong.\")") tag pos={{n7}} type=img attr=src:https://www.google.com/recaptcha/api2/payload?c=* set n8 eval("var s=\"{{answer}}\"; if(s.match(/^[0-9]+$/) && s.length <= 9 && s.length >= 2) s.substr(7,1); else macroerror(\"captcha answer wrong.\")") tag pos={{n8}} type=img attr=src:https://www.google.com/recaptcha/api2/payload?c=* set n9 eval("var s=\"{{answer}}\"; if(s.match(/^[0-9]+$/) && s.length <= 9 && s.length >= 2) s.substr(8,1); else macroerror(\"captcha answer wrong.\")") tag pos={{n9}} type=img attr=src:https://www.google.com/recaptcha/api2/payload?c=* set !errorignore no 'click verify button event type=click selector="html>body>div>div>div:nth-of-type(3)>div:nth-of-type(2)>div>div:nth-of-type(2)>div" button=0 wait seconds=2 frame f=0 event type=click selector="html>body>div>form>fieldset>ul>li:nth-of-type(6)>input" button=0 wait seconds=3 'step 6: check , send captcha feedback captcha service (ok:1, notok:2, en: right/false, de: richtig/falsch) tag pos=1 type=div attr=class:recaptcha-success extract=txt set htmlcode {{!extract}} set !extract null set feedback eval("if (\"{{htmlcode}}\" == \"juhu!\") {var x = \"1\";} else {var x = \"2\";} x;") tab open tab t=2 url goto=http://www.9kw.eu/index.cgi?source=imacros&action=usercaptchacorrectback&apikey={{apikey}}&correct={{feedback}}&id={{captchaid}} wait seconds=2 tab close tab t=1 'cleanup: delete old captcha picture filedelete name={{tempfolder}}{{tempfile}}
recaptcha_v2.html
<html> <head> <style> .c{ width:392; height:505px; margin: -15px 0 0px -15px; position: relative; overflow: hidden; } .t{ position: absolute; top: 65px; left: 10px; width: 62%; border: 1px red solid; color: rgba(255, 255, 255, 0.9); background: rgba(0, 0, 0, 0.8); font: bold 18px helvetica, sans-serif;padding: 0px 0px 0px 8px; } .n{ position: absolute; width: 20px; border: 1px red black; color:rgb(0, 0, 0); background: rgba(255, 255, 255, 0.9); font: bold 18px helvetica, sans-serif;padding: 0px 0px 0px 8px; } .n1{ top: 120px; left: 7px; } .n2 { top:120px; left:137px; } .n3 { top:120px; left:267px; } .n4 { top:250px; left:7px; } .n5 { top:250px; left:137px; } .n6 { top:250px; left:267px; } .n7 { top:380px; left:7px; } .n8 { top:380px; left:137px; } .n9 { top:380px; left:267px; } </style> <body> <div class='c'> <script> var href = window.location.href; var querystring = href.substring( href.indexof('?') + 1 ); document.write("<img src='"+querystring+"' width='400' height='600'>"); </script> <span class='t'>type image numbers<br />without spaces "268"</span> <span class='n n1'>1</span> <span class='n n2'>2</span> <span class='n n3'>3</span> <span class='n n4'>4</span> <span class='n n5'>5</span> <span class='n n6'>6</span> <span class='n n7'>7</span> <span class='n n8'>8</span> <span class='n n9'>9</span> </div> </body> </html>
or under https://www.9kw.eu/grafik/plugins/9kweu_recaptcha_v2.zip captcha service(you can use any) 9kw.eu, captcha overlay (as text captcha result) , captcha feedback. find under 9kw.eu=>plugins more imacros scripts recaptcha v1/v2, confident , solvemedia.