pcjunki Posted August 30, 2012 Share Posted August 30, 2012 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? Link to comment Share on other sites More sharing options...
Bert Posted August 30, 2012 Share Posted August 30, 2012 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. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
pcjunki Posted August 30, 2012 Author Share Posted August 30, 2012 (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 August 30, 2012 by pcjunki Link to comment Share on other sites More sharing options...
Bert Posted August 31, 2012 Share Posted August 31, 2012 (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 August 31, 2012 by scullion The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now