Basic iMacros Problem

Kontroller

Newbie
Joined
Jul 5, 2011
Messages
29
Reaction score
0
I say basic, but it is something I personally am having difficulty with.
I have a txt file with loads of comma seperated values.
I want iMacros to visit a site with the extension changing, being the next value in the text file each time.
Example; imagine the text file is "1,2,3,4,5,6,7..."
I want iMacros to go a said website, followed by a slash and then the 1, and then again followed by the 2 etc.
I could post an example very easily but it keeps being blocked.
Can someone advise me as to how about I could do this, if the method I am trying works I will happily share it afterwards.
Thanks
 
Seperate the values like this in your text file.

value 1
value 2
value 3
Then use this code.

CMDLINE !DATASOURCE C:\file.csv
SET !DATASOURCE_COLUMNS 1
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}

URL GOTO=http://www.website-you-want-to-go-to.com/{{!COL1}}/example.php
Now when you run that code on a loop it will go to each like so:

http://www.website.com/value1/example.php
http://www.website.com/value2/example.php
http://www.website.com/value3/example.php
http://www.website-you-want-to-go-to.com/value3/example.php
 
Great advice there GrizzlyAdams (great username LOL), that's exactly how i'd of done it.

Grizzly+Adams.jpg
 
I'm getting this error : "SyntaxError: wrong format of CMDLINE command, line: 3 (Error code: -910)"
Any suggestions?
 
I'm getting this error : "SyntaxError: wrong format of CMDLINE command, line: 3 (Error code: -910)"
Any suggestions?

Change the file location, as you can see in my code my file is in C:/


If yours is just in imacros datasource folder then you can just change it to this

CMDLINE !DATASOURCE file.csv
 
Back
Top