So I Made My First Bot With Imacros

ok so i have a couple thousand youtube urls i would like to comment on, but i cant seem to figure this out, do i need the scripting version of imacros?(i only have the free plugin)

can anyone post a really basic sample script of how you would have one account comment to multiple youtube urls?

i understand if you dont want to, im just fkin stuck here and have made no progress in the last few hrs :(
 
Last edited:
I have a problem too, here is what I have done:

I wanted to mix this 2 codes, first is for posting on YT:
Code:
VERSION BUILD=6230608 RECORDER=FX
TAB T=1
SET !DATASOURCE youtube.csv
SET !DATASOURCE_COLUMNS 4
SET !DATASOURCE_LINE {{!LOOP}}
CLEAR
URL GOTO=http://www.youtube.com/
TAG POS=1 TYPE=A ATTR=TXT:Sign<SP>In
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:https://www.google.com/accounts/ServiceLoginAuth?service=youtube ATTR=ID:Email CONTENT={{!COL1}}
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:https://www.google.com/accounts/ServiceLoginAuth?service=youtube ATTR=ID:Passwd CONTENT={{!COL2}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:gaia_loginform ATTR=NAME:signIn&&VALUE:Sign<SP>in
URL GOTO={{!COL3}}
TAG POS=1 TYPE=TEXTAREA FORM=NAME:comment_formmain_comment ATTR=NAME:comment CONTENT={{!COL4}}
TAG POS=1 TYPE=INPUT:BUTTON FORM=ID:comment_formmain_comment ATTR=NAME:add_comment_button&&VALUE:Post<SP>Comment
TAG POS=1 TYPE=A ATTR=TXT:Sign<SP>Out

and the other code for picking random line from excel:
Code:
SET !EXTRACT NULL
SET !EXTRACT_TEST_POPUP NO
URL GOTO=http://www.graphpad.com/quickcalcs/randomN1.cfm     
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:CFForm_1 ATTR=ID:low CONTENT=1
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:CFForm_1 ATTR=ID:hi CONTENT=10
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:CFForm_1 ATTR=NAME:Random 
TAG POS=18 TYPE=TD ATTR=TXT:* EXTRACT=TXT  
SET !LOOP {{!EXTRACT}}

Here is what I want this iMacro to do: To sign in using user/pass take url from column and pick random post from column4... I just cant make this happen...
Please someone help!
 
I set up the datasource etc but get this

SyntaxError: missing ; before statement, line 1

Anyone know what this means

Steve


This code will login, go to your video url. Then Subscribe,comment,5 star,and favourite the video. You should be able to figure out what to change after watching gogetta's video.

Code:
VERSION BUILD=6230608 RECORDER=FX
TAB T=1
SET !DATASOURCE youtube.csv
SET !DATASOURCE_COLUMNS 4
SET !DATASOURCE_LINE {{!LOOP}}
CLEAR
URL GOTO=http://www.youtube.com/
TAG POS=1 TYPE=A ATTR=TXT:Sign<SP>In
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:https://www.google.com/accounts/ServiceLoginAuth?service=youtube ATTR=ID:Email CONTENT={{!COL1}}
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:https://www.google.com/accounts/ServiceLoginAuth?service=youtube ATTR=ID:Passwd CONTENT={{!COL2}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:gaia_loginform ATTR=NAME:signIn&&VALUE:Sign<SP>in
URL GOTO={{!COL3}}
TAG POS=1 TYPE=SPAN ATTR=TXT:Subscribe
TAG POS=1 TYPE=TEXTAREA FORM=NAME:comment_formmain_comment ATTR=NAME:comment CONTENT={{!COL4}}
TAG POS=1 TYPE=INPUT:BUTTON FORM=ID:comment_formmain_comment ATTR=NAME:add_comment_button&&VALUE:Post<SP>Comment
TAG POS=1 TYPE=BUTTON ATTR=ID:star__5
TAG POS=1 TYPE=SPAN ATTR=TXT:Favorite
TAG POS=1 TYPE=A ATTR=TXT:Sign<SP>Out
 
iMacros is the best piece of automating processes online, in my opinion. Kudos to the developer... hell! I love firefox, too :)
 
VERSION BUILD=6230608 RECORDER=FX
TAB T=1
SET !DATASOURCE youtube.csv
SET !DATASOURCE_COLUMNS 3
SET !DATASOURCE_LINE {{!LOOP}}
CLEAR
URL GOTO=http://www.youtube.com/
TAG POS=1 TYPE=A ATTR=TXT:Sign<SP>In
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:https://www.google.com/accounts/ServiceLoginAuth?service=youtube ATTR=ID:Email CONTENT={{!COL1}}
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:https://www.google.com/accounts/ServiceLoginAuth?service=youtube ATTR=ID:Passwd CONTENT={{!COL2}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:gaia_loginform ATTR=NAME:signIn&&VALUE:Sign<SP>in
URL GOTO={{!COL3}}
TAG POS=1 TYPE=BUTTON ATTR=ID:star__5
TAG POS=1 TYPE=A ATTR=TXT:Sign<SP>Out

My code how do I get it to keep on looping. It just stops dead. All I want it to do is rate 5 star but it loads in one ID and thats it and then rates and stops. Please help
 
This is what i have so far:

VERSION BUILD=6230608 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
SET !DATASOURCE youtube.csv
SET !DATASOURCE_COLUMNS 3
SET !DATASOURCE_LINE {{!LOOP}}
CLEAR
URL GOTO=http://www.youtube.com/
TAG POS=1 TYPE=A ATTR=TXT:Sign<SP>In
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:https://www.google.com/accounts/ServiceLoginAuth?service=youtube ATTR=ID:Email CONTENT={{!COL1}}
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:https://www.google.com/accounts/ServiceLoginAuth?service=youtube ATTR=ID:Passwd CONTENT={{!COL2}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:gaia_loginform ATTR=NAME:signIn&&VALUE:Sign<SP>in
URL GOTO={{!COL3}}
TAG POS=1 TYPE=BUTTON ATTR=ID:star__5
TAG POS=1 TYPE=A ATTR=TXT:Sign<SP>Out

The trouble is that it only goes once and then stops. I want it to log out then log in with the new account etc. Its no good it keep rating from the same account, any ideas?
 
i have a big question i have several macros i just made to register on different sites and i am trying to put them on the same macro so combine them all but its not working ive read that you can only have up to 3 !VARs on the macro but is that per post before the new one starts... is this what is stopping me from combining them...
 
@ emilex, you cant randomly pick a cell in row "D" and it not pick the same line in the rest of your csv. You would have to create 2 datasources to do that, or write a vb script.

Also you would have to use firefox plugin to use 2 datasources. If you use the Imacros browser you will get an error stating that Imacros can't locate the datasource.

@ chemer , your code to me looks correct, are you playing the loop. Make sure to push "Play (LOOP)" on your Imacros, and not just the play button. Set Max. to however many times you want your macro to loop.

If your alreadying doing that and its not working, try removing the " SET !ERRORIGNORE YES" from your script to try and figure out the problem.


@ olm75, I think your best bet to do what your trying to do, is to use a vb to run all the macros.

Code:
set iim1= CreateObject ("imacros")
iret = iim1.iimInit ("-fx") 'Firefox
iret = iim1.iimInit
'Run the macro
   iret = iim1.iimPlay("macro1")
   iret = iim1.iimPlay("macro2")
   iret = iim1.iimPlay("macro3")

The script above will launch the firefox browser, next it will start playing the first macro, and so on. just change the name of the "macro1" to the name of your macros. Make sure to rename your macros so that they have no spaces.

So if you have a macro named Youtube Ratings you would need to remove the space. It would need to be Youtube-Ratings in Imacros and in the vb script.

Your second option is to use:

SET !VAR1 NULL
SET !VAR2 NULL
SET !VAR3 NULL

You would need to put this between all your macros if your combining them. That way it will clear the content stored as the variable.
 
ok i am using the script edition of imacros, and let me ask you all the !VARs are !VAR1 do i need to put SET !VAR1 NULL in between them correct
 
ok i am using the script edition of imacros, and let me ask you all the !VARs are !VAR1 do i need to put SET !VAR1 NULL in between them correct

I would need to see your code, PM me.
 
ok here is part:
VERSION BUILD=6600525
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=https://members.work.com/Login.do
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:theRegisterForm ATTR=ID:RegUserName CONTENT=unametest
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:theRegisterForm ATTR=ID:RegPassword CONTENT=91CE81F0C5539F74B915175E81A506E76BC9C1EA09000B375B212CC74C52BEE8
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:theRegisterForm ATTR=ID:RegEmail [email protected]
PROMPT Please<SP>enter<SP>Captcha: !VAR1
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:theRegisterForm ATTR=ID:recaptcha_response_field CONTENT={{!VAR1}}
TAG POS=2 TYPE=IMG ATTR=ALT:Join<SP>Now
'New page loaded
URL GOTO=https://members.work.com/Login.do?
'New page loaded




VERSION BUILD=6240709
TAB T=1
URL GOTO=http://www.aeonity.com/register.php
SET !DATASOURCE C:\Users\olm75\Documents\iMacros\Datasources\varibles.txt
TAG POS=1 TYPE=SELECT FORM=ACTION:http://www.aeonity.com/register.php ATTR=NAME:month CONTENT=%{{month}}
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://www.aeonity.com/register.php ATTR=NAME:day CONTENT={{date}}
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://www.aeonity.com/register.php ATTR=NAME:year CONTENT={{year}}
PROMPT Please<SP>enter<SP>Captcha: !VAR1
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://www.aeonity.com/register.php ATTR=NAME:tppCaptchaUserData CONTENT={{!VAR1}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://www.aeonity.com/register.php ATTR=NAME:submit&&VALUE:Next<SP>Step
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://www.aeonity.com/register.php ATTR=NAME:username CONTENT={{uname}}
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:http://www.aeonity.com/register.php ATTR=NAME:pass1 CONTENT={{passw}}
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:http://www.aeonity.com/register.php ATTR=NAME:pass2 CONTENT={{passw2}}
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://www.aeonity.com/register.php ATTR=NAME:email CONTENT={{email}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://www.aeonity.com/register.php ATTR=VALUE:Register




VERSION BUILD=6600525
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://www.blog.co.uk/register/register.php
SET !DATASOURCE C:\Users\olm75\Documents\iMacros\Datasources\varibles.txt
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/register/register.php ATTR=ID:registerForm_username CONTENT={{uname}}
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:/register/register.php ATTR=ID:registerForm_password CONTENT={{passw}}
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:/register/register.php ATTR=ID:registerForm_password2 CONTENT={{passw2}}
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/register/register.php ATTR=ID:registerForm_email CONTENT={{email}}
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/register/register.php ATTR=ID:registerForm_email2 CONTENT={{email2}}
PROMPT Please<SP>enter<SP>Captcha: !VAR1
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/register/register.php ATTR=ID:registerForm_capcode CONTENT={{!VAR1}}
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ACTION:/register/register.php ATTR=ID:registerForm_accept&&VALUE:1 CONTENT=YES
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:/register/register.php ATTR=ID:registerForm_submit
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/register/register2.php ATTR=ID:registerForm_forename CONTENT={{fname}}
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/register/register2.php ATTR=ID:registerForm_name CONTENT={{lname}}
TAG POS=1 TYPE=SELECT FORM=ACTION:/register/register2.php ATTR=ID:registerForm_day CONTENT={{date}}
TAG POS=1 TYPE=SELECT FORM=ACTION:/register/register2.php ATTR=ID:registerForm_month CONTENT=${{month}}
TAG POS=1 TYPE=SELECT FORM=ACTION:/register/register2.php ATTR=ID:registerForm_year CONTENT=${{year}}
TAG POS=1 TYPE=SELECT FORM=ACTION:/register/register2.php ATTR=ID:registerForm_gender CONTENT=1
TAG POS=1 TYPE=SELECT FORM=ACTION:/register/register2.php ATTR=ID:registerForm_country CONTENT=231
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/register/register2.php ATTR=ID:registerForm_city CONTENT={{city}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:/register/register2.php ATTR=ID:registerForm_submit
 
I'm guessing your running this in the Imacros browser and not firefox?

If your running this in the Imacros browser you need to remove all the white spaces between the macros. You can leave spaces in firefox but not in the notepad when running it in the Imacros browser.
 
OK.. This is getting to be one of the best threads.

Interesting and bookmarked for alll the knowledge the forums members are sharing on imacros.

Thanks a lot to all the guys chipping in.
 
ok i think i figured it out but i think u can have space as far as linses but it seems to me that the program acts like an extreme emotional woman u know sometimes it does do what u tell it and some times it doesnt, but anyway i fixed it had to delete some of the spaces at the end of the lines i think it acts like PHP a little...
 
...but it seems to me that the program acts like an extreme emotional woman u know sometimes it does do what u tell it and some times it doesnt

LMAO, That's good you got it though. :D
 
now if i can just get that new SENuke ggggrrrmmmm cracccccckkkkkkk lol... hint hint pm me
 
and now i have to do the boring task of making the web 2.0 submits in iOPUS iMacros... anyone care to help maybe we can combine forces... im doing it with about 40 sites that arent noFollow...
 
Hey guys what do u mean by noFollow and follow? i don get it. still newbie here, learning stuffs. :)
 
Back
Top