WebmasterWorkforce
BANNED
- Oct 27, 2009
- 98
- 28
Hey guys! I want to use beatcaptchas with iMacros. The following iMacro code is not working for me. I am running into problems trying to figure out what to put where it says <THIS IS WHERE YOU INSERT CAPTCHA HREF>. I tried using 'save item' as I was recording and even 'extract data', but I'm having any luck. Has anyone out there had any luck doing this?
Code:
<your start of the macro is here>
'typically you put this code when you are first able to see/download the captcha
'this deletes the previous captcha picture otherwise imacros will have errors
FILEDELETE NAME=c:\pic.jpg
'this sets where you want to download the captcha to on your computers. You MUST call the captcha pic.jpg otherwise errors might happen
ONDOWNLOAD FOLDER=c:\FILE=pic.jpg
'this downloads the captcha you do this by using the SAVE ITEM command while recording and click on the captcha
TAG POS=1 TYPE=IMG ATTR=HREF:<THIS IS WHERE YOU INSERT CAPTCHA HREF>CONTENT=EVENT:SAVEITEM
'this opens and brings you to a new tab to upload your captcha
TAB OPEN
TAB T=2
URL GOTO=http://beatcaptchas.com/captcha.php
'you are given a key upon signup and you paste it here
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:upload.php ATTR=ID:key CONTENT=<PASTE KEY HERE>
'this is the location of your captcha on your computer to upload
TAG POS=1 TYPE=INPUT:FILE FORM=ACTION:upload.php ATTR=NAME:file CONTENT=C:\pic.jpg
WAIT SECONDS=3
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:upload.php ATTR=NAME:submit
TAG POS=1 TYPE=BODY ATTR=TXT:* EXTRACT=TXT
'this sets the captcha as variable 1 to use later
SET !VAR1 {{!EXTRACT}}
TAB T=1
'this shows an example of how to input the variable into the captcha input
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:regFormBody ATTR=ID:captcha CONTENT={{!var1}}
<END OF MACRO HERE>