10-19-2012, 11:35 AM
Member function Acc.FindFirefoxWebRoot
Example. Replaced only the Acc a.Find... line.
Macro Macro1862
In FirefoxGetTabs replace line a.Find(hwndFF "DOCUMENT"... with:
Function FirefoxGetTabs
function `hwnd
;Gets root object of current web page in Firefox.
#if QMVER<0x2030400
Find(hwnd "" "" "" 0x3000 0 0 "parent")
#else
Find(hwnd "" "" "" 0x3000)
#endif
err+ end _error
Example. Replaced only the Acc a.Find... line.
Macro Macro1862
out
;get name/URL of all Firefox tabs
int w=win("Mozilla Firefox" "Mozilla*WindowClass" "" 0x804)
Acc a.FindFirefoxWebRoot(w); a.Navigate("parent3")
ARRAY(Acc) b; int i
a.GetChildObjects(b 2 "DOCUMENT" "" "" 16) ;;get all child DOCUMENT at level 2, including hidden
for i 0 b.len
,out "--------"
,out b[i].Name ;;page name
,out b[i].Value ;;page URL
,if(b[i].State&STATE_SYSTEM_INVISIBLE=0) out "<visible>"
In FirefoxGetTabs replace line a.Find(hwndFF "DOCUMENT"... with:
Function FirefoxGetTabs