iMacros - How to loop datasource?

Scorpion Ghost

Elite Member
Executive VIP
Jr. VIP
Joined
Mar 22, 2013
Messages
9,144
Reaction score
10,489
Let's say I made an iMacro and I have a csv file with 5 tabs. From 1-5.

So I have these:

SET !DATASOURCE C:\Users\Maluri\Documents\iMacros\Datasources\SoundCloud<SP>Spamming\Script2.csv
SET !DATASOURCE_COLUMNS 1
SET !DATASOURCE_LINE {{!LOOP}}

Now, if I set the iMacro to loop 10 times, I expect it to play the script go through the 5 tabs in the csv, and then on loop 6 start from the beginning and do the 5 tabs again.

But for some reason, after it does the first 5, on the 6th one it just enters a blank space. It won't loop the datasource and start from the beginning.

I googled and tried to find a solution, and someone said on the iMacros forum back in 2014 that it's not possible and you should insert as many lines as you need in the csv file. So if I wanna do 30 loops, I should insert 30 tabs in the csv file, and then do loops when I play the script and the script will go 1-30.

Yeah, that would work, but give me a break, there has to be a way to loop the datasource so that it just starts from the beginning once it exhausts all the tabs in the csv.

Any help?
 
Send me a redacted data source and I'll try and help you.

Hey man sorry for not replying sooner. Thanks for offering, but I ended up just filling out all the fields in my csv files.

I tried the same thing on a smaller file (1 row in the csv) and it worked, but the scripts I'm making have about 8 rows each, and I suspect it's iMacros not wanting to play nice with csv. Maybe if I switched to txt files it would work flawlessly. But I want to use csv files for this, so I took care of it.

Thanks though, much appreciated.
 
I need a solution to this now. Can't use a workaround. See the original post for what I need.

Can anyone help?

@BlogPro you still around?
 
Back
Top