Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Menu selection from dynamic menu
#12
If need menu of all images, here is another way.
Macro menu of images in Firefox with callback
Code:
Copy      Help
str s
int w=wait(2 WV win("Mozilla Firefox" "Mozilla*WindowClass" "" 0x804))
Acc a1.FindFF(w "IMG" "" "" 0 0 0 "" &Acc_FindFF_callback_get_img_src &s)
;out s

if(!s.len) ret
int i=ShowMenu(s 0 0 2)-1; if(i<1) ret
s.getl(s i)
out s

;str url; a1.WebPageProp(url) ;;use this if need page URL

also need this function
Function Acc_FindFF_callback_get_img_src
Code:
Copy      Help
;/
function# FFNode&x level str&s FFNODEINFO&ni

;Callback function for Acc.FindFF. Created from a template in File -> New -> Templates menu.

_s=x.Attribute("src")
if(_s.len) s.addline(_s)
ret 1


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)