03-07-2012, 02:22 PM
OK then,
applying recent knowledge acquisition, i can create a new tab with that code
int w=win("Mozilla Firefox" "Mozilla*WindowClass" "" 0x804); if(!w) ret -1
Acc a.Find(w "MENUITEM" "New tab (after this tab)**" "class=MozillaWindowClass" 0x1005)
a.DoDefaultAction
but i can't close one with that code, similar
int w=win("Mozilla Firefox" "Mozilla*WindowClass" "" 0x804); if(!w) ret -1
Acc a.Find(w "MENUITEM" "close tab**" "class=MozillaWindowClass[]a:id=context_closeTab" 0x1005)
a.DoDefaultAction
why?
NB: ** translated from french to english, your mileage may vary
applying recent knowledge acquisition, i can create a new tab with that code
int w=win("Mozilla Firefox" "Mozilla*WindowClass" "" 0x804); if(!w) ret -1
Acc a.Find(w "MENUITEM" "New tab (after this tab)**" "class=MozillaWindowClass" 0x1005)
a.DoDefaultAction
but i can't close one with that code, similar
int w=win("Mozilla Firefox" "Mozilla*WindowClass" "" 0x804); if(!w) ret -1
Acc a.Find(w "MENUITEM" "close tab**" "class=MozillaWindowClass[]a:id=context_closeTab" 0x1005)
a.DoDefaultAction
why?
NB: ** translated from french to english, your mileage may vary