Imacros SHARED code scripts

I didn't create these scripts but I use them the whole time, they are very useful to me so I am sure that they will be to others.

Facebook: Delete All Groups
Code:
VERSION BUILD=6111228 RECORDER=FX <- note that this line will be different if you have a different version of imacros
TAB T=1
SET !ERRORIGNORE YES
SET !LOADCHECK NO
SET !TIMEOUT 100
SET !DIALOGMANAGER NO
TAG POS=1 TYPE=A ATTR=TXT:Leave<SP>Group
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:remove&&VALUE:Remove
WAIT SECONDS=2

Facebook: Delete All Wall Posts (Very useful with groups)
Code:
VERSION BUILD=6111228 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
SET !LOADCHECK NO
SET !TIMEOUT 100
SET !DIALOGMANAGER NO
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
WAIT SECONDS=3
REFRESH
 
Scraps random first name, last name. Saves as randomnames.csv. Great for using with LinkFarmEvolution and creating mass blogs. I scraped about 5k names today.

Code:
VERSION BUILD=6801021     
TAB T=1     
TAB CLOSEALLOTHERS   
SET !ERRORIGNORE YES
SET !EXTRACT_TEST_POPUP NO
SET !DATASOURCE_COLUMNS 2
SET !LOOP 1
'Increase the current position in the file with each loop 
SET !DATASOURCE_LINE {{!LOOP}}
'
URL GOTO=http://www.fakenamegenerator.com/ 
TAG POS=1 TYPE=INPUT:IMAGE FORM=NAME:options ATTR=     
TAG POS=1 TYPE=SPAN ATTR=CLASS:given-name&&TXT:* EXTRACT=TXT  
TAG POS=1 TYPE=SPAN ATTR=CLASS:family-name&&TXT:* EXTRACT=TXT 
SAVEAS TYPE=EXTRACT FOLDER=* FILE=randomnames.csv
 
wow man. this thread is awesome, bookmarked it and off to buying my copy of winautomation
 
Does anyone else get constant "Options" popup box after EVERY page is loaded in the browser. I had that problem at first and uninstalled imacros because it was so bad but now I really want to try it but it is so aggravating. If it runs a task that involves opening a lot of websites eventually around the 25th one or so it will crash my Firefox. If I could stop those darn popups I think that would help, although I can't find anyone else discussing having the same problem.
Hope someone on here has seen this too and can point me in the right direction to fix it.
Thanks.
 
hey, is there anyone know how to code auto accept friend request with macro??? please help, thx!

just login and record the action once and bam works great. for myspace dunno about facebook. i usually have about 100 adds a day so one click done.
 
Great thread. I haven't touched IMacros yet, but I'm a competent C/C++/PHP/MySQL programmer so I want to get started within a month.

Here's what I'll be building:
- Forum auto PM scripts
(find a way avoid the mods?!)
- Forum auto-register and activate scripts (I wait at least a week before changing profiles though, so I'll probably keep that manual for now)

Anyone interested in teaming up? Do you experts think it'd be best to have a different script for each type of forum, or just have the script determine the type of forum itself and then go into that case?

This is a late January project for me though, so I'm not starting right away.
 
Plenty of Fish Part 1.. you must make your own .csv file

also must type captcha BEFORE you run the macro

Code:
VERSION BUILD=6240709 RECORDER=FX
TAB T=1
URL GOTO=http://www.plentyoffish.com/


SET !ERRORIGNORE YES
SET !DATASOURCE C:\csv\t.csv
SET !DATASOURCE_COLUMNS 3
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}


TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ACTION:http://www.plentyoffish.com/register.aspx ATTR=NAME:terms CONTENT=YES
TAG POS=1 TYPE=SELECT FORM=ACTION:http://www.plentyoffish.com/register.aspx ATTR=NAME:ethnicity CONTENT=%6
TAG POS=1 TYPE=SELECT FORM=ACTION:http://www.plentyoffish.com/register.aspx ATTR=ID:country CONTENT=%1
TAG POS=1 TYPE=SELECT FORM=ACTION:http://www.plentyoffish.com/register.aspx ATTR=NAME:birthmonth CONTENT=%3
TAG POS=1 TYPE=SELECT FORM=ACTION:http://www.plentyoffish.com/register.aspx ATTR=NAME:birthday CONTENT=%05
TAG POS=1 TYPE=SELECT FORM=ACTION:http://www.plentyoffish.com/register.aspx ATTR=NAME:birthyear CONTENT=%1986
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://www.plentyoffish.com/register.aspx ATTR=NAME:Email CONTENT={{!COL1}}
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://www.plentyoffish.com/register.aspx ATTR=NAME:Password CONTENT={{!COL2}}
[COLOR="Red"][B]TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://www.plentyoffish.com/register.aspx ATTR=NAME:Username CONTENT={{!COL3}}[/B][/COLOR]
TAG POS=1 TYPE=INPUT:IMAGE FORM=ID:_ctl0 ATTR=NAME:Submit&&VALUE:Go<SP>To<SP>Second<SP>Step&&SRC:http://www.plentyoffish.com/home1.gif
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:form1 ATTR=ID:postalcode CONTENT={{!COL4}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:form1 ATTR=ID:city CONTENT={{!COL5}}

TAG POS=1 TYPE=SELECT FORM=NAME:form1 ATTR=ID:maritalstatus CONTENT=%1
TAG POS=1 TYPE=SELECT FORM=NAME:form1 ATTR=ID:haschildren CONTENT=%2
TAG POS=1 TYPE=SELECT FORM=NAME:form1 ATTR=ID:smoke CONTENT=%2
TAG POS=1 TYPE=SELECT FORM=NAME:form1 ATTR=ID:drugs CONTENT=%1
TAG POS=1 TYPE=SELECT FORM=NAME:form1 ATTR=ID:drink CONTENT=%2
TAG POS=1 TYPE=SELECT FORM=NAME:form1 ATTR=ID:height CONTENT=%163
TAG POS=1 TYPE=SELECT FORM=NAME:form1 ATTR=ID:searchtype CONTENT=%9
TAG POS=1 TYPE=SELECT FORM=NAME:form1 ATTR=ID:Iama CONTENT=%1
TAG POS=1 TYPE=SELECT FORM=NAME:form1 ATTR=ID:Seekinga CONTENT=%0
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:form1 ATTR=ID:profession CONTENT={{!COL6}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:form1 ATTR=ID:headline CONTENT={{!COL7}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:form1 ATTR=ID:interests CONTENT={{!COL8}}
TAG POS=1 TYPE=TEXTAREA FORM=NAME:form1 ATTR=ID:description CONTENT={{!COL9))
TAG POS=1 TYPE=TEXTAREA FORM=NAME:form1 ATTR=NAME:firstdate CONTENT={{!COL10}}
TAG POS=1 TYPE=INPUT:FILE FORM=NAME:form1 ATTR=ID:myFile CONTENT=C:\t\3.jpg
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:form1 ATTR=NAME:CreateProfile&&VALUE:<SP>Create<SP>My<SP>Profile<SP>

Plenty of Fish Part 2

Code:
VERSION BUILD=6240709 RECORDER=FX
TAB T=1
URL GOTO=http://www.plentyoffish.com/poftest.aspx?track=1
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:one&&VALUE:0
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:two&&VALUE:1
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:three&&VALUE:1
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:four&&VALUE:1
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:five&&VALUE:1
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:six&&VALUE:1
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:seven&&VALUE:1
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:eight&&VALUE:2
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:nine&&VALUE:2
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:ten&&VALUE:2
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:eleven&&VALUE:2
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:twelve&&VALUE:3
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:thirteen&&VALUE:2
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:fourteen&&VALUE:3
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:fifteen&&VALUE:0
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:sixteen&&VALUE:1
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:seventeen&&VALUE:1
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:eighteen&&VALUE:2
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:nineteen&&VALUE:2
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:twenty&&VALUE:1
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:twentyone&&VALUE:1
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:twentytwo&&VALUE:1
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:twentyfour&&VALUE:1
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:twentythree&&VALUE:2
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:twentyfive&&VALUE:2
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:twentysix&&VALUE:2
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:twentyseven&&VALUE:2
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:twentyeight&&VALUE:1
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:twentynine&&VALUE:2
TAG POS=144 TYPE=TD ATTR=ALIGN:center
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:thirty&&VALUE:2
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:thirtyone&&VALUE:1
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:thirtytwo&&VALUE:2
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:thirtythree&&VALUE:2
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:thirtyfour&&VALUE:2
TAG POS=168 TYPE=TD ATTR=ALIGN:center
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:thirtyfive&&VALUE:2
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:thirtysix&&VALUE:1
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:thirtyseven&&VALUE:2
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:thirtyeight&&VALUE:1
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:thirtynine&&VALUE:1
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:fourty&&VALUE:1
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:fourtyone&&VALUE:1
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:fourtytwo&&VALUE:3
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:fourtythree&&VALUE:0
TAG POS=104 TYPE=TD ATTR=BGCOLOR:#bbd4e0&&ALIGN:center
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:fourtyfive&&VALUE:3
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:fourtyfour&&VALUE:3
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:fourtysix&&VALUE:3
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:fourtyseven&&VALUE:3
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:fourtyeight&&VALUE:3
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://www.plentyoffish.com/poftest.aspx ATTR=NAME:completetest&&VALUE:Submit<SP>Test
TAG POS=1 TYPE=A ATTR=HREF:inbox.aspx?SID=xnxltv55euruun551uhrio55&Guid=18358082

Totally new to iMacros and I had a question for the poster or anyone on this: If I'm creating multiple user accounts and need multiple emails and (obviously usernames), do I put them all in the same column but seperate rows?

For example, as above;
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:hxxp://3w.plentyoffish.c0m/register.aspx ATTR=NAME:Username CONTENT={{!COL3}}

If I'm saving the username in a csv file and want to create 10 users, where do I put the names in that csv? Hope that makes sense.

Lastly, how does iMacros call up the csv file? Where do I save that to?
 
you can try this


add this in your imacros file in the upper portion (self-explainable)
Code:
SET !DATASOURCE sourcefile.CSV    
SET !DATASOURCE_COLUMNS 4    
SET !DATASOURCE_LINE {{!LOOP}}

and this is what the csv file should look like
Code:
"username","password","email","etc"
"username","password","email","etc"
"username","password","email","etc"
"username","password","email","etc"

and in the same iim file you will call it via {{!COL1}} {{!COL2}} {{!COL3}} {{!COL4}}

TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:bookmarkingsite.com/bookmarks.php/username ATTR=ID:address CONTENT={{!COL1}}

etc
etc


save the csv file in the datasource folder of imacros
 
you can try this


add this in your imacros file in the upper portion (self-explainable)
Code:
SET !DATASOURCE sourcefile.CSV    
SET !DATASOURCE_COLUMNS 4    
SET !DATASOURCE_LINE {{!LOOP}}

and this is what the csv file should look like
Code:
"username","password","email","etc"
"username","password","email","etc"
"username","password","email","etc"
"username","password","email","etc"

and in the same iim file you will call it via {{!COL1}} {{!COL2}} {{!COL3}} {{!COL4}}

TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:bookmarkingsite.com/bookmarks.php/username ATTR=ID:address CONTENT={{!COL1}}

etc
etc


save the csv file in the datasource folder of imacros

I had pretty much figured it out before you posted but thanks brother. Oh, the only thing I had to do different was to put
SET !LOOP 2
in the macro to tell it to start on the second row since the first row was just the headers.

This is going to save me a boatload of work and help me make some good money much easer.

If I can get it to switch proxies on the fly using imacros that would be awesome.
 
Here's my setup for imacros:

I installed xampp
I created a script for all my imacros needs.
Create a script that will run imacros from a php page. (iimRunner.exe should be already executed to run)
The only thing I haven't figured out is how to open iimRunner.exe from a php page.
I also created a script to create a report template to make things more easy.
 
Here's a script that scrapes ezinearticles. Use something like neta1o's scraper to first scrape required article ids (its free btw).

I've included extensive comments for the sake of understanding.

HTML:
VERSION BUILD=6000328     
TAB T=1     
TAB CLOSEALLOTHERS 
'
SET !EXTRACT_TEST_POPUP NO
'
'Specify the csv with only one column containing article ids only.
CMDLINE !DATASOURCE artid.csv
'
'Number of columns in the CSV file. This must be accurate!
SET !DATASOURCE_COLUMNS 1
'
'Start at line 1 if you do not want to skip the header in the file
SET !LOOP 1
'
'Increase the current position in the file with each loop 
SET !DATASOURCE_LINE {{!LOOP}}  
'
'Go to a url that caters for easy extraction
URL GOTO=http://ezinearticles.com/ezinepublisher/?id={{!COL1}}
'
'Extract the Article Title in Column 1
TAG POS=1 TYPE=TITLE ATTR=* EXTRACT=TXT
'
'Extract Article Summary in Column 2
TAG POS=1 TYPE=TEXTAREA FORM=NAME:NoFormName ATTR=ID:article-summary EXTRACT=TXT
'
'Extract Article Keywords in Column 3
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:NoFormName ATTR=ID:article-keywords EXTRACT=TXT
'
'Go to a URL to extract article html code and resource box
URL GOTO=http://ezinearticles.com/{{!COL1}}
'
'This extracts article body html (without resource box)
TAG POS=1 TYPE=DIV ATTR=ID:body&&TXT:* EXTRACT=HTM
'Note: You need to remove the div tags rapped around the article above
'
'Extracting resource box can be useless but below is the code
TAG POS=1 TYPE=DIV ATTR=ID:sig&&TXT:* EXTRACT=HTM
'
'Extract original article url for records
ADD !EXTRACT {{!URLCURRENT}}
'
'Save the file (I've no idea how to name the file!)
'This will create extract.csv in downloads
'
SAVEAS TYPE=EXTRACT

Uses?
- Create further macros to submit these articles to web 2.0 sites etc.
- Use this as an example to see how extract tags work.
 
Last edited:
Here's my setup for imacros:

I installed xampp
I created a script for all my imacros needs.
Create a script that will run imacros from a php page. (iimRunner.exe should be already executed to run)
The only thing I haven't figured out is how to open iimRunner.exe from a php page.
I also created a script to create a report template to make things more easy.

If you want to have your pc run a series of macros, a batch script is all you need. See example .bat files for more info.
 
but I already have my rewriter in a php page and there are functions or settings in the html form that seems to be impossible to manage using batch files.

maybe you could teach me how to open a program from a php page.
 
Great thread. I haven't touched IMacros yet, but I'm a competent C/C++/PHP/MySQL programmer so I want to get started within a month.

Here's what I'll be building:
- Forum auto PM scripts
(find a way avoid the mods?!)
- Forum auto-register and activate scripts (I wait at least a week before changing profiles though, so I'll probably keep that manual for now)

Anyone interested in teaming up? Do you experts think it'd be best to have a different script for each type of forum, or just have the script determine the type of forum itself and then go into that case?

This is a late January project for me though, so I'm not starting right away.
would be great idea.
we can select one type of forum.
like Vbullitin
and then create script to create account , verfiy it...
create profiles

and then ping our profile page...

for sending Pm
i dont know how this will work
we have to create a timer to wait between each PM
and use multiple account for PM
and then the pain is finding members name...

imacros are addictive... the only drawback is it is not multitasking..

then we can create imacro to create a post in these forums general part...
or start a new thread.....
 
Hey has anyone else had the problem where iMacros pops up their options box after every single web page load event (even ones that I open on my own)? It is all the time, I can't keep clicking OK or whatever to make it go away. If it is pages that iMacros opened it ends up causing TONS of the popups stacked up until my browser crashes.
 
This is a great thread. I think I can install and use imacros at my normal 8-5 no only just here. Amazing stuff :)

I have a software development background and this is a very easy programming language, reminds me of VB. Just need to get use to the variables / syntaxes

Looking forward to creating some useful macros and sharing with the community in the near future.
 
Back
Top