So I Made My First Bot With Imacros

Just wondering I don't have Microsoft Office on this machine, can Open Office export a .CSV file. I've never used it before
 
Alright, say I have Column 1 with first names and column 2 with last names. How would I go about randomizing both columns on Input.

So I can get a random name Each time the column gets a call for input?
 
Alright, say I have Column 1 with first names and column 2 with last names. How would I go about randomizing both columns on Input.

So I can get a random name Each time the column gets a call for input?

You'd have to get into VBScript a little bit. Here's an example of using a random number VBScript with iMacros:
http://wiki.imacros.net/Random-Numbers.vbs

And here's a short VBScript on creating random alphanumeric strings:

Code:
Function RandomLetters( ByVal stringLength ) 
    Dim strRandom
    Const grabBag = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" 
    For i = 1 to stringLength 
        strRandom = strRandom& Mid( grabBag, RandomNumber( 1, Len( grabBag ) ), 1 )
    Next
    RandomString = strRandom 
End Function
 
Anyone know if I can access (2) !Setdatasource files from 1 macro? Let's say I've got a .csv file that is all my passwords. (which won't change) and I want to store random blog posts in another .csv file. I know I can combine everything in 1 .csv file and get it to work, but I'll be moving data all over the place.

I know the scripting version of iMacros can access a database. (I have it installed from this board) Anyone got this sort of thing running? I'm thinking of spinning an article into multiple variations and posting the different versions everywhere. I know if I took the time I could make a giant .csv file and get it to work that way, but boy is that gonna be a pain to set up.
 
I use Selenium to do my automation, it has loads of functionality and the good thing is you can code the scripts in Java, PHP, Python and other languages if you want to do more than you can with the simple IDE.

Do anyone else use this?
 
I use Selenium to do my automation, it has loads of functionality and the good thing is you can code the scripts in Java, PHP, Python and other languages if you want to do more than you can with the simple IDE.

Do anyone else use this?

thanks for the hint, selenium seems to be interesting especially for software developers ;)
 
could anyone please post a tutorial on how to use imacros to create automation?
or any link is highly appreciated.
 
could anyone please post a tutorial on how to use imacros to create automation?
or any link is highly appreciated.
If you're a visual learner, I'd say the easiest way is to use the firefox plugin and record a few macros. Simply set it to "record" and start clicking, fill out a form, etc. You'll see with each of your actions, a new line is created in the macro with a command. When you're done, stop recording and right-click and "Edit" the macro to see what it did when you clicked whatever.

Also, there are a ton of sample macros in iMacros (firefox and scripting editions).

If you're the kind that would rather read about something first, their wiki has very clear and expressive tutorials:
http://wiki.imacros.net/Form_Filling
 
I currently know html, css, php, and javascript. what language should I learn to create imacros script??
 
rufus: if you can write in php, why not write your bot in php as well ?
You can do pretty nice stuff in PHP, and since php4 you can run it as console script
 
rufus: if you can write in php, why not write your bot in php as well ?
You can do pretty nice stuff in PHP, and since php4 you can run it as console script
iMacros is much easier to write with, and for most things you don't even have to write anything with the "record" option.

But it is true that PHP & cURL can make some wicked macros (faking headers/referers/etc) :)

rufus: I think MS's batch file programming is closer to iMacros :) It's uber easy to pick up, as long as you understand the flow of the pages/forms you're trying to manipulate.
 
ok, I'll start reading some tuts about it.

Thanks for the tips :D

Edit:

I'll create a php script that will create imacros files to be used in imacros in firefox particularly in link wheel creation. I need ideas.
 
Last edited:
TAG POS=1 TYPE=IMG ATTR=HREF:<INSERT CAPTCHA LINK/ID>

I keep getting error here as the URL keeps changing.
What URL do you ? i.e do you use any wildcards?


edit: sorry for the 7 posts.... bhw was going really slow for me..

I got captchas to work using beatcaptchas.com, $8 per 1000
It takes the captcha image, uploads to their server, then send the completed back to you . It's pretty easy to setup I managed to do it and it's my first day working with imacros.

Heres the code you would use to implement beatcaptchas, and I think it would be similar for any other captcha site.

Code:
FILEDELETE NAME=c:\pic.jpg
ONDOWNLOAD FOLDER=c:\ FILE=pic.jpg
TAG POS=1 TYPE=IMG ATTR=HREF:<INSERT CAPTCHA LINK/ID>
URL GOTO=http://beatcaptchas.com/captcha.php
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:upload.php ATTR=ID:key CONTENT=<INSERT YOUR BEATCAPTCHA.COM KEY>
TAG POS=1 TYPE=INPUT:FILE FORM=ACTION:upload.php ATTR=NAME:file CONTENT=c:\pic.jpg
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://beatcaptchas.com/upload.php ATTR=NAME:submit&&VALUE:Submit
TAG POS=1 TYPE=BODY ATTR=TXT:* EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}
 
searched around and....
wildcard * did the trick....


Any one have a code to run multiple macros?

Thanks for a great post.

BTW - will post when done with the macro [simple go to a page; populate the values; use beatcaptha and sign up]
 
begging for help on this. the captcha it downloads is different than what is displayed and I keep getting captcha errors
 
I have done lot of imacro for wordpress application. But i am not able to do imacro for dyndns. Can any help me on this?
 
Back
Top