Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tweak GetChildObjects routine
#11
Found the same thing while trying by myself.

Only issue is the new function

Code:
Copy      Help
a.FindFirefoxWebRoot(hwndFF); a.Navigate("pa3fi")

does not work there, genereta error with empty page.

Code:
Copy      Help
a.Find(hwndFF "DOCUMENT" "" "" 0x1010 2 0 "pa3fi")  <====================reverted to that (the new function does not work, generate error)
rep
     get id of this pane, and find in ap
    fn.FromAcc(a); _s=fn.Attribute("id")
    for(i 0 ap.len) if(ap[i]=_s) break
    if(i=names.len) goto next2 ;;should never happen
     get DOCUMENT object and url
    Acc aa; a.Navigate("fi2" aa)
                        err goto next2 ;; <==================== added this to bypass the aa object not existing
    if(&urls) urls[i]=aa.Value
    if(&docObjects) docObjects[i]=aa
    
     next2
    a.Navigate("n"); err break

ret r

err+ end _error


Hope this good behavior will last.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)