Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetHtmlElements: 2 pop-ups appearing, taking focus away from firefox
#2
To close the popup use other thread. Start it with mac, like mac "sub.MySubfunction", before the code line that triggers the popup.

-----

Or use FFNode instead of IHTMLElement.

Macro Macro533
Code:
Copy      Help
int w=wait(3 WV win("Mozilla Firefox" "MozillaWindowClass"))
FFNode doc.FromDoc(w)
doc.FindFF(doc "div" "" "" 0 0 0 &sub.Callback_FindFF)


#sub Callback_FindFF
function# FFNode&x level cbParam FFNODEINFO&ni

;Template Callback_Acc_Find contains more info about this callback function.

;From x you can get html element tag, HTML, text, attributes, siblings/children/parent, some other info. Also to convert to Acc if possible.

out "-----"

out x.HTML

;ARRAY(str) a
;x.AttributesAll(a 1)
;out a

;Acc k.FromFFNode(x 1)
;k.Role(_s); out _s
;k.Location(...

ret 1

-------


Messages In This Thread
RE: GetHtmlElements: 2 pop-ups appearing, taking focus away from firefox - by Gintaras - 05-19-2020, 08:33 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)