05-19-2020, 08:33 PM
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
-------
-----
Or use FFNode instead of IHTMLElement.
Macro Macro533
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
-------