Jump to content
Sign in to follow this  
cypher175

Multiple Scripts Using Different Tabs On Same IE Object

Recommended Posts

cypher175

I have multiple scripts all using different IE Objects, so if I have 6 scripts running simultaneously there will be 6 different IE windows open..

So what I want to know is, if its possible at all to have one instance of IE running and have all 6 scripts working simultaneously but in different Tabs on the same IE window Object..??

Is anything like this possible at all with AutoIt..??

Share this post


Link to post
Share on other sites
Juvigy

Yes.Only in IE 7 and above.Check out the code:

$oIE.Navigate2("Yahoo.com",2048)

Share this post


Link to post
Share on other sites
cypher175

is there any way to get an Object for the new tab at all..??

how do i re-navigate the new tab..??

Share this post


Link to post
Share on other sites
Juvigy

You can use _IEAtach to attach to any or all of the tabs.

Lets say you have 3 tabs: - yahoo , google , microsoft

$oIE1 = _IEAttach("http://uk.yahoo.com/?p=us", "url")
$oIE2 = _IEAttach("http://google.com", "url")
$oIE3 = _IEAttach("http://microsoft.com", "url")

If you want to navigate away from the microsoft site you can do:

_IENavigate ($oIE3, "http://www.autoitscript.com/forum/index.php?")

Share this post


Link to post
Share on other sites
cypher175

Is there anyway to Close the new Tab I opened using this..??

$oIE.Navigate2("http://google.com", 2048)

$oIE = _IEAttach("http://google.com", "url")

How do I Close this Tab..??

Share this post


Link to post
Share on other sites
Juvigy

_IEQuit($oIE)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×