1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice

iMacros - How to loop datasource?

Discussion in 'General Scripting Chat' started by Scorpion Ghost, Aug 1, 2018.

  1. Scorpion Ghost

    Scorpion Ghost Jr. VIP Jr. VIP

    Joined:
    Mar 22, 2013
    Messages:
    3,112
    Likes Received:
    1,382
    Occupation:
    Internet!
    Location:
    On the Interwebz
    Home Page:
    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?
     
  2. BlogPro

    BlogPro Supreme Member

    Joined:
    Apr 23, 2012
    Messages:
    1,284
    Likes Received:
    1,883
    Home Page:
    Send me a redacted data source and I'll try and help you.
     
    • Thanks Thanks x 1
  3. Scorpion Ghost

    Scorpion Ghost Jr. VIP Jr. VIP

    Joined:
    Mar 22, 2013
    Messages:
    3,112
    Likes Received:
    1,382
    Occupation:
    Internet!
    Location:
    On the Interwebz
    Home Page:
    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.
     
  4. Scorpion Ghost

    Scorpion Ghost Jr. VIP Jr. VIP

    Joined:
    Mar 22, 2013
    Messages:
    3,112
    Likes Received:
    1,382
    Occupation:
    Internet!
    Location:
    On the Interwebz
    Home Page:
    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?