by doing my script with built-in COM commands, i encounterd a big issue :
when i create other pointers pwb2, pwb3, etc... to navigate on a new website
(while the first pointer pwb is doing something on the first opened tab), they don't open
in new IE tabs, but new IE windows.
Pwb := ComObjCreate("InternetExplorer.Application") Pwb.Navigate("http://www.google.fr") Pwb.visible:=True IELoad(Pwb) Sleep, 100 Pwb2 := ComObjCreate("InternetExplorer.Application") Pwb2.Navigate("http://www.yahoo.fr") Pwb2.visible:=True IELoad(Pwb2) Pwb3 := ComObjCreate("InternetExplorer.Application") Pwb3.Navigate("http://www.youtube.com") Pwb3.visible:=True IELoad(Pwb3) IELoad(Pwb) { If !Pwb Return False Loop Sleep,100 Until (Pwb.busy) Loop Sleep,100 Until (!Pwb.busy) Loop Sleep,100 Until (Pwb.Document.Readystate = "Complete") Return True }I tested this code but it opens only google, and no other websites (needed in new tabs).
Then i commented out the loop :
;Loop ;Sleep,100 ;Until (Pwb.busy)And now it opens 3 new Internet explorer windows, but i want just new tabs !
How to create new tabs for new pointers, so that each pointer pwbN can process only on its own
IE tab and doesn't disburb already created tabs ? And is IELoad() function really correct/optimal ?
I read many posts about this topic, and i saw a code containing this command :
ComObjCreate("Shell.Application").Windowsbut there was not clear answer for new tab in built-in com language.
Thanks.