Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Export as Text
#1
Guys,

How can I set a txt File with the result of the "out a[i].outerHTML" below ?

I can see all the lines at QM but i can't export it


Code:
Copy      Help
HtmlDoc d
d.SetOptions(2)
d.InitFromWeb("http://www.quickmacros.com/")
ARRAY(MSHTML.IHTMLElement) a; int i
d.GetLinks(a)
for i 0 a.len
    out a[i].outerHTML

Help, Please!!!
#2
Macro Macro130
Code:
Copy      Help
HtmlDoc d
d.SetOptions(2)
d.InitFromWeb("http://www.quickmacros.com/")
ARRAY(MSHTML.IHTMLElement) a; int i; str s outfile="$desktop$\outerHTML.txt"
d.GetLinks(a)
for i 0 a.len
,s += _s.from(a[i].outerHTML "[]")
s.setfile(outfile)
run outfile
#3
Start_Learning,

It worked perfectly.

Thanks a lot!!!!!


Forum Jump:


Users browsing this thread: 1 Guest(s)