Imacros doesnt save the right captcha...

PHP:
CAPATCHA
FILEDELETE NAME=c:\captchas\captcha.jpg
ONDOWNLOAD FOLDER=c:\captchas FILE=captcha.jpg

TAG POS=1 TYPE=IMG ATTR=WIDTH:110 CONTENT=EVENT:SAVEITEM

SET !ERRORIGNORE YES
SET !EXTRACT_TEST_POPUP NO
SET !TIMEOUT 120
SET !EXTRACT NULL
TAB OPEN
TAB T=2
URL GOTO=http://api.deathbycaptcha.com/decaptcher?function=picture2&print_format=html
TAG POS=1 TYPE=INPUT ATTR=NAME:username CONTENT=YOURUSERNAME
TAG POS=1 TYPE=INPUT ATTR=NAME:password CONTENT=YOURPASSWORD
TAG POS=1 TYPE=INPUT ATTR=NAME:pict CONTENT=C:\captchas\captcha.jpg
TAG POS=1 TYPE=INPUT ATTR=TYPE:submit
WAIT SECONDS=2
TAG POS=6 TYPE=TD ATTR=* EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}

THE WIDTH is the actual size of the captcha picture

This code is for using with Deathbycaptcha, dont know about other services.

Work fine

You must create the c:/captchas folder, or change the path to your choice

regards
 
Back
Top