Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selecting tab in firefox
#11
Well, for once the way Gintaras took was not appropriate, even if i used piece of code in another macro yet.....

The trick i was looking for was the dodefaultaction thing, baffled i did not find it by myself.

I just had then to tweak the original Firefox4GetTabs function, and off we go.

here what i did:

ARRAY(str) names urls
int selectedTab=Firefox4GetTabs(0 names urls)

int i

int w=win("Mozilla Firefox" "Mozilla*WindowClass" "" 0x804)
Acc a.Find(w "PAGETAB" names[2] "class=MozillaWindowClass" 0x1005) => find by name
Acc a.Find(w "PAGETAB" "" "class=MozillaWindowClass" 0x1005 0 2) =>find by index
a.DoDefaultAction

Thanks again G & Ken for leading me the right way.


Messages In This Thread

Forum Jump:


Users browsing this thread: 12 Guest(s)