Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Menu selection from dynamic menu
#2
Macro get selected images in Firefox
Code:
Copy      Help
;str s.getclip("HTML Format")
str s.getsel(0 "HTML Format")
;out s
int i=find(s "<html" 0 1); if(i<0) ret
s.get(s i)
;out s; ret

str m

HtmlDoc 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
,str name.getfilename(s 1) ;;or try to get title or alt attribute
,m.formata("%s :out ''%s''[]" name s)

;out m
DynamicMenu m


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)