1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to run iMacro's script in many tabs simultaneously?

Discussion in 'General Programming Chat' started by dekadent30, Aug 2, 2017.

  1. dekadent30

    dekadent30 Power Member

    Joined:
    Nov 10, 2008
    Messages:
    575
    Likes Received:
    152
    How to create imacros that can visit urls from the provided list in 5 tabs simultaneously? It should visit 5 first urls in 5 tabs, close all and then next 5 urls in 5 new tabs ans so on...
     
  2. HoNeYBiRD

    HoNeYBiRD Jr. VIP Jr. VIP

    Joined:
    May 1, 2009
    Messages:
    6,953
    Likes Received:
    7,985
    Gender:
    Male
    Occupation:
    Geographer, Tourism Manager
    Location:
    Ghosted
    Here ya go:
    Code:
    VERSION BUILD=10022823
    TAB T=1
    TAB CLOSEALLOTHERS
    SET !DATASOURCE c:\Users\YourWindowsUsername\Documents\iMacros\DataSources\urls.csv
    SET !LOOP 1
    SET !DATASOURCE_LINE {{!LOOP}}
    URL GOTO={{!COL1}}
    TAB OPEN NEW
    TAB T=2
    URL GOTO={{!COL2}}
    TAB OPEN NEW
    TAB T=3
    URL GOTO={{!COL3}}
    TAB OPEN NEW
    TAB T=4
    URL GOTO={{!COL4}}
    TAB OPEN NEW
    TAB T=5
    URL GOTO={{!COL5}}
    WAIT SECONDS=10
    Divide your urls into 5 columns, so there will be one opened per tab. Create an urls.csv file in the DataSource folder of your iMacros installation or adjust the path in line 3 accordingly. Play the macro in loop. You can adjust the wait time in the last line, if you think it's too much or too few.
     
    • Thanks Thanks x 2
  3. dekadent30

    dekadent30 Power Member

    Joined:
    Nov 10, 2008
    Messages:
    575
    Likes Received:
    152
    Thanks a lot