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

Imacros Loop Question

Discussion in 'General Programming Chat' started by nothingmore, Jun 6, 2012.

  1. nothingmore

    nothingmore Junior Member

    Joined:
    May 1, 2011
    Messages:
    190
    Likes Received:
    219
    Location:
    The Lounge
    I have a macro that only does two things:

    TAG POS=1 TYPE=DIV ATTR=TXT:YES
    WAIT SECONDS=.25
    TAG POS=2 TYPE=DIV ATTR=TXT:YES
    WAIT SECONDS=.25
    TAG POS=3 TYPE=DIV ATTR=TXT:YES
    WAIT SECONDS=.25
    TAG POS=4 TYPE=DIV ATTR=TXT:YES
    WAIT SECONDS=.25
    TAG POS=5 TYPE=DIV ATTR=TXT:YES
    WAIT SECONDS=.25
    TAG POS=6 TYPE=DIV ATTR=TXT:YES
    WAIT SECONDS=.25

    The only thing that is different is TAG POS=#+1. Is there an easier way to make this macro rather then keep copy and pasting the same 2 lines and replacing the numbers? I may have to do this 10,000+ times if that's the case. Is there a way I can just have it loop however many times I want instead?

    Thank you!
     
    Last edited: Jun 6, 2012
  2. xrfanatic

    xrfanatic Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 28, 2010
    Messages:
    371
    Likes Received:
    166
    Location:
    http://bit.ly/slb64
    Home Page:
    Tag pos={{!loop}}

    :)