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

Simple iMacros Script - Open & Close Tabs with Time Delay

Discussion in 'HTML & JavaScript' started by owilliams, Dec 10, 2011.

  1. owilliams

    owilliams Registered Member

    Joined:
    Jun 27, 2009
    Messages:
    90
    Likes Received:
    4
    I'm trying to create a simple iMacro that opens and closes tabs with a simple time delay.

    This is what I have so far:
    Code:
    VERSION BUILD=7300701 RECORDER=FX
    TAB T=1
    URL GOTO=http://www.***.com
    WAIT SECONDS=(3|)
    TAB T=2
    URL GOTO=http://www.***.com
    WAIT SECONDS=(5|)
    TAB T=2
    TAB CLOSE
    TAB T=1
    URL GOTO=http://www.***.com
    WAIT SECONDS=(2|)
    TAB T=1
    TAB CLOSE
    And I know the time delay function is:
    Code:
    WAIT SECONDS=(n|#DOWNLOADCOMPLETE#)
    But I can't get it to work. What am I doing wrong?

    Would really appreciate any help anyone can give.
     
  2. owilliams

    owilliams Registered Member

    Joined:
    Jun 27, 2009
    Messages:
    90
    Likes Received:
    4
    Sort of worked it out.. if anyone can clean it up a little bit - It would be great.

    Code:
    VERSION BUILD=7300701 RECORDER=FX
    TAB OPEN
    TAB T=1
    URL GOTO=http://www.youtubefun.info/views/
    WAIT SECONDS=5
    TAB OPEN
    TAB T=2
    URL GOTO=http://youtubefun.info/views
    WAIT SECONDS=5
    TAB CLOSE
    TAB T=1
    TAB CLOSE