Imacros SHARED code scripts

Facebook: Signup Macro

Again, just change the Red items (8 of them)

Code:
URL GOTO=http://www.facebook.com/
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:reg ATTR=ID:firstname CONTENT=[COLOR=Red]firstname[/COLOR]
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:reg ATTR=ID:lastname CONTENT=[COLOR=Red]lastname[/COLOR]
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:reg ATTR=ID:reg_email__ CONTENT=[COLOR=Red][email protected][/COLOR]
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:reg ATTR=ID:reg_passwd__ CONTENT=[COLOR=Red]password[/COLOR]
'sex: 1 is female 2 is male, keep the % symbol
TAG POS=1 TYPE=SELECT FORM=NAME:reg ATTR=ID:sex CONTENT=%[COLOR=Red]1[/COLOR]
'birthmonth is 3 letters ex. Jan for January, keep the % symbol
TAG POS=1 TYPE=SELECT FORM=NAME:reg ATTR=ID:birthday_month CONTENT=%[COLOR=Red]Nov[/COLOR]
'birthday_day is 1 number, keep the % symbol
TAG POS=1 TYPE=SELECT FORM=NAME:reg ATTR=ID:birthday_day CONTENT=%[COLOR=Red]15[/COLOR]
'birthyear is 1 number, keep the % symbol
TAG POS=1 TYPE=SELECT FORM=NAME:reg ATTR=ID:birthday_year CONTENT=%[COLOR=Red]1955[/COLOR]
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:reg ATTR=VALUE:Sign<SP>Up
PROMPT Please<SP>Enter<SP>Captcha<SP>Code: !VAR1
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:reg ATTR=ID:captcha_response CONTENT={{!VAR1}}
TAG POS=2 TYPE=INPUT:SUBMIT FORM=ID:reg ATTR=VALUE:Sign<SP>Up


hi thanks for this script, kinda new to imacros
ive made a .csv but it doesnt being called. However, the female as the default option works with a blank option

:)
 
Do you need a column header with the name usernames and one named passwords? I can't get it to go down my list, I have no column names. Do you think that is the problem?

You don't have to have the column headers. Watch your macro run and see if the CMDLINE !DATASOURCE linkurls.csv ever gets highlighted. If the line is skipped instead of highlighted, there is something wrong with the file or the file location.

I find that most of the time when this happens to me the file format is wrong. Try saving the csv file as: CSV (MS-DOS) (*.csv), close the file (sometimes I have to close the file for the changes to take effect, you can reopen it later) and be sure to check your file location in the macro and verify where it is on your hard drive.

I prefer to use the file location command in this format:
SET !DATASOURCE C:\macros\Datasources\linkurls.csv

Instead of using: SET !DATASOURCE linkurls.csv or CMDLINE !DATASOURCE linkurls.csv

That way I can visually verify where the file is suppose to be.
 
Last edited:
any macro to log into yahoo mail, click on new messages, copy and paste the content of that message to notepad.
 
I need some help on a macro I'm trying to write. First off I need to access two data source files from within one macro. Example; need to access user-names.csv and user-content.csv. Can some one help with how to code that so that the script will access both data files.

What I am trying to do and need some help with this as well.. I'm writting a script to post articles on GoArticles. I have a list of 50 user names and passwords. I need the macro to log into the first account and post 10 articles. Then log into the second account and post 10 articles, and so forth. This is what I am trying to accomplish. If I can get some help with this I would appreciate it and I will post the macro when it's done for all to use.

How I have it set up now is I have the user-names.csv with two columns, first is the user name and second is the password. Then I have the user-content.csv which has the articles title, author bio, author name and article body.
 
What I am trying to do and need some help with this as well.. I'm writting a script to post articles on GoArticles. I have a list of 50 user names and passwords. I need the macro to log into the first account and post 10 articles. Then log into the second account and post 10 articles, and so forth. This is what I am trying to accomplish. If I can get some help with this I would appreciate it and I will post the macro when it's done for all to use.

How I have it set up now is I have the user-names.csv with two columns, first is the user name and second is the password. Then I have the user-content.csv which has the articles title, author bio, author name and article body.

I don't think you can access 2 csv files in the free version of Imacros.
What you can do is put each article in it's own cell in the same row for 1 author.
Like this:user name | password | Title1 | Article1 |Title2 | Article2 ...

Then record your macro by logging into your account and record posting 10 articles.
Go back into the macro and change the Titles and Articles to reflect the column # of the Titles and Articles in the order you want them posted.

Don't forget to change the number of colums at the start of your macro.
 
Thanks for the reply. I do have the scripting edition of Imacros, is it possible in the scripting edition to do what I need?
 
You can use two datasources with the Firefox version of iMacros, you just have to redefine the !DATASOURCE variable:
Code:
VERSION BUILD=6650406 RECORDER=FX
SET !ERRORIGNORE YES
SET !DATASOURCE source1.csv
SET !DATASOURCE_COLUMNS 1
TAB T=1
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}
URL GOTO=http://www.google.com/webhp?hl=en
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=NAME:q CONTENT={{!COL1}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:f ATTR=NAME:btnG&&VALUE:Google<SP>Search
WAIT SECONDS=15
SET !DATASOURCE source2.csv
URL GOTO=http://www.google.com/webhp?hl=en
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=NAME:q CONTENT={{!COL1}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:f ATTR=NAME:btnG&&VALUE:Google<SP>Search
Hope this helps.
 
I just want to know how to install proxies into iMacros. How would I do that?
 
I just want to know how to install proxies into iMacros. How would I do that?

You can use Javascript (in the free FF version) to access About:config apparently or PROXY command in paid for one.

I couldn't get the Javascript working to do it but heres a Yahoo mail creator I started (create a CSV with info to import and play on loop) - got a few things to add inc proxy, writing to output file

Code:
VERSION BUILD=6700624 RECORDER=FX
TAB T=1
CLEAR
CMDLINE !DATASOURCE c:\Test.csv
SET !DATASOURCE_COLUMNS 11
SET !DATASOURCE_LINE {{!LOOP}}
URL GOTO=h t t p s://edit.europe.yahoo.com/registration?.intl=uk&new=1&.src=ym&.done=h t t p ://uk.mail.yahoo.com
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:regFormBody ATTR=ID:firstname CONTENT={{!COL1}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:regFormBody ATTR=ID:secondname CONTENT={{!COL2}}
TAG POS=1 TYPE=SELECT FORM=NAME:regFormBody ATTR=ID:gender CONTENT=#{{!COL3}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:regFormBody ATTR=ID:dd CONTENT={{!COL4}}
TAG POS=1 TYPE=SELECT FORM=NAME:regFormBody ATTR=ID:mm CONTENT=#{{!COL5}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:regFormBody ATTR=ID:yyyy CONTENT={{!COL6}}
TAG POS=1 TYPE=SELECT FORM=NAME:regFormBody ATTR=ID:country CONTENT=%uk
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:regFormBody ATTR=ID:postalcode CONTENT={{!COL7}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:regFormBody ATTR=ID:yahooid CONTENT={{!COL8}}
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:regFormBody ATTR=ID:password CONTENT={{!COL9}}
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:regFormBody ATTR=ID:passwordconfirm CONTENT={{!COL9}}
TAG POS=1 TYPE=SELECT FORM=NAME:regFormBody ATTR=ID:secquestion CONTENT=%What<SP>is<SP>the<SP>first<SP>name<SP>of<SP>your<SP>favourite<SP>uncle?
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:regFormBody ATTR=ID:secquestionanswer CONTENT={{!COL10}}
TAG POS=1 TYPE=SELECT FORM=NAME:regFormBody ATTR=ID:secquestion2 CONTENT=%What<SP>was<SP>your<SP>favourite<SP>food<SP>as<SP>a<SP>child?
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:regFormBody ATTR=ID:secquestionanswer2 CONTENT={{!COL11}}
PROMPT Please<SP>enter<SP>Captcha !VAR1
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:regFormBody ATTR=ID:cword CONTENT={{!var1}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:regFormBody ATTR=ID:IAgreeBtn
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=NAME:regConfirmBodyFrm ATTR=ID:mktgPrefs CONTENT=NO
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:regConfirmBodyFrm ATTR=ID:ContinueBtn
 
Do you need a column header with the name usernames and one named passwords? I can't get it to go down my list, I have no column names. Do you think that is the problem?

I'm not sure if the loop function is available in the free version. I'm using the scripting edition (shared here).
 
Does anyone have a working serial for the beta version of imacros? Its version 7 and its suppose to be coming out of beta tomorrow.
 
Say I have 4 macros recorded. And I wanted to play a specific macro based on whether or not a word existed on a web page. How would I do that with javascript? I'm looking for code that says something like if "cat" appears on somewebpage, then play macro1, but if "dog" appears on somewebpage, then play macro2, but if "bird" appears on somewebpage, then play macro3 and so on.
 
not sure how to code that in javascript but what you will need to do is make a macro that runs after the page is loaded and has a extract command that extracts text from the whole page or from a area the word you're looking for appears. Use javascript to compare the extracted value to 4 set variables using a "if, then" statement and if one of the statements is met it runs a certain macro
 
Say I have 4 macros recorded. And I wanted to play a specific macro based on whether or not a word existed on a web page. How would I do that with javascript? I'm looking for code that says something like if "cat" appears on somewebpage, then play macro1, but if "dog" appears on somewebpage, then play macro2, but if "bird" appears on somewebpage, then play macro3 and so on.

Are you thinking of using this for blog commenting? I was thinking along the same lines - post something that's vaguely relevant to what's on the page. I thought if you could key in on something in the title tag and make it apply you could really have something.
 
not sure how to code that in javascript but what you will need to do is make a macro that runs after the page is loaded and has a extract command that extracts text from the whole page or from a area the word you're looking for appears. Use javascript to compare the extracted value to 4 set variables using a "if, then" statement and if one of the statements is met it runs a certain macro

Ok I did this and I think I got it working using the imacros search command and regexp attribute. I don't think its an exact keyword search as I'm still completely clueless about constructing regular expressions lol but it works for now. Thank you.

However, I have one more question. The site I'm making the macro for has a captcha image. I figured out how to tie in bypasscaptcha/beatcaptcha solving service, but sometimes they send back the wrong captcha. How can I tell javascript to retry the captcha if incorrect. Right now, I'm using a while loop, but maybe I just have it constructed wrong.

My JS file:

Code:
var keywords=new Array();
keywords[0]="Take a quick survey";
keywords[1]="You are about to take your first survey";
keywords[2]="Are you a robot";
keywords[3]="The code you entered is invalid";

if (iimGetLastExtract() == keywords[2])
    {
        do  
            {
            iimPlay ("docaptcha.iim")
            iimPlay ("searchkeywords.iim")
            }
        while ((iimGetLastExtract() == keywords[2]) ; //Loop docaptcha.iim till keyword isn't found
    }
 
:(i need help about imacro. i am new in using this plugin. i just want to use this plugin for using my assignment on cyberonlinejobs. there are assignments for data entry on different sites. same data should enter on 3000 sites then you will complete one assignment. My question is how can i do this work with imacro while there is averification code and i want to bypass that code for my time saving. plz help me i am a very poor guy and this work will pay me some money but it,s very hard to do on 3000 sites by clicking the sites again and again and then put data and then verify code and then post your data it,s very diffecult and time consuming. I heared about imacro then i realise that it can help me but i do not know how to use it on my work. plzzzzzzzz help me if you can.:confused:
 
Ok I did this and I think I got it working using the imacros search command and regexp attribute. I don't think its an exact keyword search as I'm still completely clueless about constructing regular expressions lol but it works for now. Thank you.

However, I have one more question. The site I'm making the macro for has a captcha image. I figured out how to tie in bypasscaptcha/beatcaptcha solving service, but sometimes they send back the wrong captcha. How can I tell javascript to retry the captcha if incorrect. Right now, I'm using a while loop, but maybe I just have it constructed wrong.

My JS file:

Code:
var keywords=new Array();
keywords[0]="Take a quick survey";
keywords[1]="You are about to take your first survey";
keywords[2]="Are you a robot";
keywords[3]="The code you entered is invalid";

if (iimGetLastExtract() == keywords[2])
    {
        do  
            {
            iimPlay ("docaptcha.iim")
            iimPlay ("searchkeywords.iim")
            }
        while ((iimGetLastExtract() == keywords[2]) ; //Loop docaptcha.iim till keyword isn't found
    }


sometimes iimGetLastExtract will return the extracted text along with [EXTRACT] at the end of it so you may need to add in some code that checks for that and strips it if found. your while loop should work fine then.
 
I find the way I can edit sock with imacros for Firfox;
here is the code :

Code:
VERSION BUILD=6700624 RECORDER=FX
TAB T=1
TAB CLOSEALLOTHERS
CLEAR
URL GOTO=about:config
'some proxies are slow, set the timeout to 90 seconds:
URL GOTO=javascript:gPrefBranch.setIntPref("network.http.keep-alive.timeout",600);
URL GOTO=about:config
'set the proxy URL
URL GOTO=javascript:var<SP>prefb<SP>=<SP>Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);var<SP>str<SP>=<SP>Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);str.data<SP>=<SP>"IP HERE";prefb.setComplexValue("network.proxy.socks",<SP>Components.interfaces.nsISupportsString,<SP>str);
URL GOTO=about:config
'set the proxy port:
URL GOTO=javascript:gPrefBranch.setIntPref("network.proxy.socks_port",PORT HERE);
'turn the proxy on
URL GOTO=about:config
URL GOTO=javascript:gPrefBranch.setIntPref("network.proxy.type",1);
URL GOTO=cmyip.com
edit IP HERE and PORT HERE with IP and PORT of sock
 
I got a tricky little problem, just cant seem to solve :( See pic no spam
www dot yourhelpme dot com/column.JPG


When down loading the data extracted on to the .csv file I need it to write to column ?B? because column ?A? has data that I want to stay intact,
I'm using Firefox Imacros 6.7.0.1 , is there a command to ignore the 1st column, the same way you can miss the 1st row?

thanks all :rolleyes:
 
Back
Top