08-05-2016, 02:41 PM
Just one more question:
How can run or modify this url as a string?
I tried:
str s
HtmlDoc d
d.SetOptions(2)
d.InitFromWeb("http://www.quickmacros.com/")
ARRAY(MSHTML.IHTMLElement) a; int i
d.GetLinks(a)
str url
for i 0 a.len
,s=a[i].getAttribute("href" 0)
,;out s
,if(matchw(s "*foru*")) out s
run s
or
str stext.from("site" s )
But the string s is not the URL which QM is showing in "out".
How can run or modify this url as a string?
I tried:
str s
HtmlDoc d
d.SetOptions(2)
d.InitFromWeb("http://www.quickmacros.com/")
ARRAY(MSHTML.IHTMLElement) a; int i
d.GetLinks(a)
str url
for i 0 a.len
,s=a[i].getAttribute("href" 0)
,;out s
,if(matchw(s "*foru*")) out s
run s
or
str stext.from("site" s )
But the string s is not the URL which QM is showing in "out".