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

Imacros loop start from the bottom of the page?

Discussion in 'General Scripting Chat' started by Husbarn, Jan 14, 2014.

  1. Husbarn

    Husbarn Junior Member

    Joined:
    Dec 19, 2012
    Messages:
    160
    Likes Received:
    20
    Is it possible to start the loop with imacros that could start doing actions from the bottom of the page?

    What i mean is that if you replace position number with loop, it starts to do everything from the top of the page, can it be set somehow to start from the bottom?
     
  2. GotYourDoxx

    GotYourDoxx Newbie

    Joined:
    Apr 13, 2014
    Messages:
    13
    Likes Received:
    0
    Now this answer would help me too. After googling this topic I could not find a command to run a imacro backwards. Why not write a new on "backwards" and save it and run it when needed?
     
  3. Fortythieve

    Fortythieve BANNED BANNED

    Joined:
    Jun 8, 2013
    Messages:
    419
    Likes Received:
    70
    Look under technical info
    http://wiki.imacros.net/Main_Page
     
  4. facebookdude

    facebookdude Elite Member

    Joined:
    Feb 28, 2010
    Messages:
    1,506
    Likes Received:
    2,490
    This will scroll to the bottom of any page.

     
    • Thanks Thanks x 1
  5. wuttrichai55

    wuttrichai55 Newbie

    Joined:
    Aug 24, 2014
    Messages:
    1
    Likes Received:
    0
    i interesting code imacro
     
  6. Bot Solutions

    Bot Solutions Regular Member

    Joined:
    Aug 19, 2014
    Messages:
    215
    Likes Received:
    361
    Occupation:
    Bot maker
    Location:
    Hungary
    Home Page:
    You have to go with the scripting interface.

    Code:
    var macro1;
    macro1 = "CODE:";
    macro1 += "tag pos={{i}} ... extract=txt";
    
    for (var i = 1; extract != '#EANF#'; i++) {
    iimSet("i",i);
    iimPlay(macro1);
    var extract = iimGetLastExtract(1);
    }
    //i = number of the elements
    
    
    var macro2;
    macro2= "CODE:";
    macro2 += "tag pos={{i}} ...";
    
    while (i2 != 1) {
    iimSet("i",i);
    i--;
    iimPlay(macro2);
    }
    
    //start looping from the last position