08-05-2016, 04:27 AM
To find object in web browser, use * in value.
Macro Macro2737
To find in downloaded HTML file, use HtmlDoc class.
Macro Macro2738
Macro Macro2737
int w=wait(3 WV win(" Firefox" "MozillaWindowClass"))
Acc a.Find(w "LINK" "Forum" "value=*foru*" 0x3015 3)
To find in downloaded HTML file, use HtmlDoc class.
Macro Macro2738
out
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
;d.FindHtmlElement("... ;;this could be easier but it cannot search just in href attribute