03-26-2012, 06:26 PM
function hwndFF ARRAY(TABPROP)&tabs
if(!hwndFF) hwndFF=win("Mozilla Firefox" "Mozilla*WindowClass" "" 0x804); if(!hwndFF) ret -1
TABPROP& x
int i=0
int r=-1
Acc a.Find(hwndFF "PAGETAB" "" "class=MozillaWindowClass" 0x1004)
rep
if(a.Role!ROLE_SYSTEM_PAGETAB) goto next ;;[ + ] button
x=tabs[]
x.name=a.Name
if(r<0 and a.State&STATE_SYSTEM_SELECTED) x.index=i
next
a.Navigate("n"); err break
i+1
and the calling function no longer works, eg no output at all.
if(!hwndFF) hwndFF=win("Mozilla Firefox" "Mozilla*WindowClass" "" 0x804); if(!hwndFF) ret -1
TABPROP& x
int i=0
int r=-1
Acc a.Find(hwndFF "PAGETAB" "" "class=MozillaWindowClass" 0x1004)
rep
if(a.Role!ROLE_SYSTEM_PAGETAB) goto next ;;[ + ] button
x=tabs[]
x.name=a.Name
if(r<0 and a.State&STATE_SYSTEM_SELECTED) x.index=i
next
a.Navigate("n"); err break
i+1
and the calling function no longer works, eg no output at all.
