iMacros Help Please?

Conor

Elite Member
Joined
Nov 7, 2012
Messages
3,621
Reaction score
6,217
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?
 
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. :-)
 
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.

:-)
 
better try changing the file extension make it CSV rather than a txt
I had faced that many a times before
and this resolved it..
 
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/"
 
Last edited:
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/"

Okay. Works here, too. :-) Well done, tompots.
 
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. :-)


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


better try changing the file extension make it CSV rather than a txt
I had faced that many a times before
and this resolved it..


Tried that too dude, but thanks anyways!



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/"

That works perfectly for me, many thanks dude!
 
Back
Top