How to Automate Anything



Step 1: get imacros SCRIPTING edition and a macro program like macro express or AutoMate i use Automate v6

step 2: learn the basics of imacros and automate6 its generally simple and explains itself and both programs have a large help file and site. 

step 3: once you got the basics down you can dive into the key part to the operation, visual basic scripting(VBS) now VBS can be used alongside imacros and provides a TON more functionality for imacros, heres an example of one VBS http://wiki.imacros.net/Random-Numbers.vbs. Here is a small adaption on how you might want to use it with a snipet of the code from the random numbers vbs code

Randomize

rn = cint (rnd()*5 + 1)

select case rn

case 1:

firstname = “mark”

case 2:

firstname = “jack”

case 3:

firstname = “steven”

case 4:

firstname = “luke”

case 5:

firstname = “mike” 

case else:

firstname = “erik”

end select

‘Set the variables for imacros

iret = iim1.iimSet(“-var_firstname”, firstname)

So basically when a VBS runs it generates variables for imacros and in this case randomly picks one of the names and then sends it to imacros which uses those variables where you need them. I personally have it randomly choose one of 9000 first names and 15000 last names along with several random letters and numbers for  inputs and such on signup so EVERY signup is unique.

step 4 – Captchas

now this is the part that plaques most people. How to get past the captchas. Well I use a captcha service http://www.beatcaptchas.com which has the best deals i have found by far, it starts at 8 dollars for 1000 captchas which = .008 a captcha down to 300 for 50000 which =.006 a captcha. Its directly made for imacros and you basically just plugin a couple lines of their code which is on the site and you never have to worry about captchas again.

so when im done I have a nice clean text/csv file that has the info I need

and looks like this

username,password

username2,password2

username3,password3

STEP 5 -extra stuff

another key thing is making an error macro for when thigns go wrong or you get the captcha wrong. You input what macro to run in your VBS script and when the error hits it will run the error macro you choose. Basically what i do is cut out all the stuff leading up to the captcha and just have from the captcha on being the error macro and this works perfectly.

Tags: ,

Posted in vb.net programming


Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>