dimanche 2 avril 2017

imacros what if captcha failed to solve

I'm really a newbie in coding and don't know to much about it I made a Script that sign up for amazon, after 5 account made, it ask for captcha I've bought anti-captcha and it's works great, but sometimes it answer the captcha wrong and imacros stop. the question is, how to make imacros repeat the same step if captcha fail, and if it pass it go to the next step here is code for my work

TAG POS=1 TYPE=INPUT:EMAIL FORM=NAME:signIn ATTR=NAME:email CONTENT=
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:signIn ATTR=NAME:password CONTENT=
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:signIn ATTR=*
' so here the captcha will appear
SET !TIMEOUT_STEP 120
TAG POS=1 TYPE=DIV ATTR=CLASS:"*antigate_solver*solved*"
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:signIn ATTR=NAME:password CONTENT=
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:signIn ATTR=*

so if the captcha was written wrong it will stack on the screen and stop after a while. I heard the eval could solve this problem, but i don't know how to use it. what I want is if the captcha wrote wrong it repeat the same step if it write correct go to next step

Aucun commentaire:

Enregistrer un commentaire