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

Is There A Way To Set A Delay Before An iMacros Script Starts?

Discussion in 'Other Scripting Languages' started by Kieranight, Dec 22, 2015.

  1. Kieranight

    Kieranight Junior Member

    Joined:
    Sep 12, 2015
    Messages:
    106
    Likes Received:
    19
    Location:
    eBay
    Hi Guys,
    I am using Captain Jack's great IG follower script at the moment, which you have to click on a new photo every hour. This isn't really a problem, but I'm quite busy recently and does anyone know how to set a 1 time delay before the script starts running (on firefox), so that I can open a few tabs and set one to run now, one to run in an hours time, one in 2 hours time etc.? If you do then I would really appreciate it :)
    Thanks,
    ~Kieran
     
  2. Plus44

    Plus44 Power Member

    Joined:
    Dec 14, 2014
    Messages:
    663
    Likes Received:
    252
    Gender:
    Male
    Location:
    US
    Are you talking about this http://www.blackhatworld.com/blackh...-new-improved-instagram-follower-script.html? they are pretty basic and just repeat themselves after every individual follow/like


    The only thing that comes to mind is instead of setting up different tabs is to set up different windows. Then make a few duplicates of the script, but change the wait times of the ones you want to start later on to be extracted from a text file so you can make the first delay be the longest


    Code:
    SET !ERRORIGNORE YES
    [COLOR=#00ff00]SET !DATASOURCE C:\Users\Plus44\Documents\iMacros\Datasources\waittimes.txt[/COLOR]
    SET !TIMEOUT_STEP 2
    FILTER TYPE=IMAGES STATUS=ON
    SET !LOOP 1
    TAB T=1
    URL GOTO=http://statigr.am/viewer.php#/user/{{!LOOP}}/
    WAIT SECONDS=[COLOR=#00ff00]{{!COL1}}[/COLOR]
    TAG POS=1 TYPE=A ATTR=TXT:Follow
    WAIT SECONDS=18
    

    so say you want the script to start in an hour make your text file have an hour delay for only the first line, so the rest of the script can just continue like normal

    Text file would be like this

    3600
    5
    5
    5
    5
    5
    5
    5
    5
     
    • Thanks Thanks x 1
  3. Kieranight

    Kieranight Junior Member

    Joined:
    Sep 12, 2015
    Messages:
    106
    Likes Received:
    19
    Location:
    eBay
    Last edited: Dec 24, 2015
  4. Plus44

    Plus44 Power Member

    Joined:
    Dec 14, 2014
    Messages:
    663
    Likes Received:
    252
    Gender:
    Male
    Location:
    US
    No problem. Let me know if you need any help with it

    I forgot to include a loop. Without the loop the script would just read the first line of the text file every time the script repeats

    Code:
    SET !ERRORIGNORE YES
    [COLOR=#00ff00]SET !DATASOURCE C:\Users\Plus44\Documents\iMacros\Datasources\waittimes.txt[/COLOR]
    [COLOR=#00ff00]SET !TIMEOUT_STEP 2
    SET !DATASOURCE_LINE {{!LOOP}}[/COLOR]
    FILTER TYPE=IMAGES STATUS=ON
    SET !LOOP 1
    TAB T=1
    URL GOTO=http://statigr.am/viewer.php#/user/{{!LOOP}}/
    WAIT SECONDS=[COLOR=#00ff00]{{!COL1}}[/COLOR]
    TAG POS=1 TYPE=A ATTR=TXT:Follow
    WAIT SECONDS=18