Sign in to follow this  
Followers 0
pcjunki

multiple instances of ie

4 posts in this topic

i currently have 2 separate scripts that autologon to our company's intranet site and owa

which produces 2 instances of ie

then i have to drag the tab of one instance to the other instance, then i have just one instance with the two tabs

is there a way to automate this joining of the instances?

Share this post


Link to post
Share on other sites



Understand you are treading on thin ice with the auto log on thing. Seeing how you are asking how to have both in the same instance of IE, you could simply make a change to your IE setting so instead of opening to a new window open a new tab instead.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

im using the $oie=_IECreate in each script, to launch the intranet sites

so when i launch my script, it automatically creates a new instance.

my default ie settings are to open up in a new tab...

Edited by pcjunki

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I found this bit of code by my friend James Mills. create a second tab then attach to it.

http://www.autoitscript.com/forum/topic/143527-ie-8-and-tabs/page__hl__+tab#entry1010727

Local $numtabs = 0

while 1

$numtabs = $numtabs + 1

$oie = _ieattach("","instance",$numtabs)

if @error = $_IEStatus_Nomatch then

exitloop

endif

$oietitle = _IDpropertyget($oie,"title")

if $oietitle = "cid", then

exitloop

endif

wend

Edited by scullion

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  
Followers 0