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

iMacros Help Please?

Discussion in 'General Scripting Chat' started by Conor, Apr 29, 2014.

  1. Conor

    Conor Jr. VIP Jr. VIP

    Joined:
    Nov 7, 2012
    Messages:
    3,364
    Likes Received:
    5,425
    Gender:
    Male
    Location:
    South Africa
    Home Page:
    Hey all.

    I'm a bit stuck, been Googling around for about an hour, and can't seem to find a working solution.

    I have this code:
    Code:
    TAB T={{!LOOP}}
    WAIT SECONDS=2
    SET !EXTRACT {{!URLCURRENT}} 
    SAVEAS TYPE=EXTRACT FOLDER=D:\Documents FILE=URL.TXT
    SET !EXTRACT NULL
    What it should do, when looped, is simply move through all my open tabs, and append the URL of each tab to a txt file. My problem, is that when I loop the script, it only appends the URL of the first tab to the txt file, even though it's moving to the next tab.

    The script works fine if I run it manually for each tab, but that will take me days, so isn't viable.

    Anyone care to give me some input?
     
  2. x00bin

    x00bin Newbie

    Joined:
    Mar 20, 2014
    Messages:
    19
    Likes Received:
    1
    Occupation:
    Independent Contractor
    Location:
    World Wide Web
    Home Page:
    Well...

    You could do it like that:
    1. Focus 2nd tab.
    2. Save URL.
    3. Close 2nd tab.
    (Loop)

    Loop it till there isnt a 2nd tab. :)
     
  3. x00bin

    x00bin Newbie

    Joined:
    Mar 20, 2014
    Messages:
    19
    Likes Received:
    1
    Occupation:
    Independent Contractor
    Location:
    World Wide Web
    Home Page:
    This script ...

    Code:
    VERSION BUILD=8810214 RECORDER=FX
    TAB T=1
    WAIT SECONDS=1
    TAB T=2
    WAIT SECONDS=1
    SET !EXTRACT {{!URLCURRENT}}
    SAVEAS TYPE=EXTRACT FOLDER=C:\ FILE=URL.txt
    TAB CLOSE
    WAIT SECONDS=1
    SET !EXTRACT NULL
    TAB T=1
    ... in a defined loop will return ...


    Code:
    "***.google.de/#q=2"
    "***.google.de/#q=3"
    "***.google.de/#q=4"
    "***.google.de/#q=5"
    "***.google.de/#q=6"
    in the file C:\URL.txt.

    :)
     
  4. XxUnivaxX

    XxUnivaxX Jr. VIP Jr. VIP

    Joined:
    Jan 15, 2013
    Messages:
    2,069
    Likes Received:
    898
    Gender:
    Male
    Location:
    Basement
  5. tompots

    tompots Elite Member Premium Member

    Joined:
    Dec 11, 2011
    Messages:
    4,352
    Likes Received:
    3,955
    Gender:
    Male
    Occupation:
    Full Time Bot Developer
    Location:
    Professional Botters
    Home Page:
    All I did to get it to work for me was, make a file called URL.txt on your C:\ and then right click
    Firefox and select run as administrator. If your having trouble maybe there is a problem with the
    speed of the browser or internet.

    Code:
    SET !EXTRACT_TEST_POPUP NO
    TAB T={{!LOOP}}
    WAIT SECONDS=2
    ADD !EXTRACT {{!URLCURRENT}}
    SAVEAS TYPE=EXTRACT FOLDER=C:\ FILE=URL.txt
    SET !EXTRACT NULL
    Here are the results I got from running it.

    Code:
    "https://www.google.com/"
    "http://www.yahoo.com"
    "http://www.bing.com/"
     
    • Thanks Thanks x 1
    Last edited: Apr 29, 2014
  6. x00srch

    x00srch Registered Member

    Joined:
    Jul 2, 2013
    Messages:
    53
    Likes Received:
    15
    Location:
    Berlin, Germany
    Okay. Works here, too. :) Well done, tompots.
     
    • Thanks Thanks x 1
  7. Conor

    Conor Jr. VIP Jr. VIP

    Joined:
    Nov 7, 2012
    Messages:
    3,364
    Likes Received:
    5,425
    Gender:
    Male
    Location:
    South Africa
    Home Page:

    Thanks buddy, I tried that too at first. Still didn't work for some reason :\



    Tried that too dude, but thanks anyways!



    That works perfectly for me, many thanks dude!
     
    • Thanks Thanks x 1