Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ARRAY of custom type as parameter
#11
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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)