Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Web Image saving
#17
ldarrambide Wrote:Trying them.

Macro 1644&1645 launches IE when used with Firefox, don't want that

Maybe depends on page or some IE settings.
Try this.
Macro Macro1644
Code:
Copy      Help
int w=wait(2 WV win("Mozilla Firefox" "Mozilla*WindowClass" "" 0x804))
Acc a1.Find(w "DOCUMENT" "" "" 0x3010 2)
str s
a1.WebPageProp(0 0 s)
;out s

int i
HtmlDoc d
d.SetOptions(2)
d.InitFromText(s)
ARRAY(MSHTML.IHTMLElement) a
d.GetHtmlElements(a "img")
for i 0 a.len
,MSHTML.IHTMLElement e=a[i]
,s=e.getAttribute("src" 0)
,out s


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)