03-21-2012, 04:01 PM
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.
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.