Sign in to follow this  
Followers 0
newtothis

Internet Explorer tabs

6 posts in this topic

Hi can anyone help me with loading new urls in different interexplorer tabs,

I have been able to open internet explorer and a page in the window using _IECreate. Using the Send(Ctrl + t) key i can open a new tab but am unable to open the same web page in the new tab that has opened. Is this possable, I had thought that you could just loop around sending the same url to internet explorer each time after the send keys to open the tab.

I have searched the forum and found no way of doing this.

Many thanks for help :D

Share this post


Link to post
Share on other sites



There is an undocumented function in IE.au3 that you can use to do this - __IENavigate (notice the double underscore). There are a few examples in the forum and you can look in IE,au3 for some documentation. I will likely have something in IE.au3 to do this is a somewhat different way in the not distant future.

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

There is an undocumented function in IE.au3 that you can use to do this - __IENavigate (notice the double underscore). There are a few examples in the forum and you can look in IE,au3 for some documentation. I will likely have something in IE.au3 to do this is a somewhat different way in the not distant future.

Dale

Thanks for the reply dale I have spent the last while looking for the references you have made to __IeNavigate an dfound only two references to it. I have also looked through IE.au3 but am still no wiser, I tryed using __IeNavigate with the double underscore using Scite4 editor and autoit 3. I am obvisually missing something or doing it wrong can you show and example that would help. Thanks again for the reply.

Share this post


Link to post
Share on other sites

Thanks for the reply dale I have spent the last while looking for the references you have made to __IeNavigate an dfound only two references to it. I have also looked through IE.au3 but am still no wiser, I tryed using __IeNavigate with the double underscore using Scite4 editor and autoit 3. I am obvisually missing something or doing it wrong can you show and example that would help. Thanks again for the reply.

I find 2 pages of posts when searching for __IENavigate

#include <IE.au3>

$oIE = _IECreate()

__IENavigate($oIE, "www.autoitscript.com", 1, 2048) ; open in a new tab

__IENavigate($oIE, "www.autoitscript.com", 1, 4096) ; open in a new background tab

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

I find 2 pages of posts when searching for __IENavigate

#include <IE.au3>

$oIE = _IECreate()

__IENavigate($oIE, "www.autoitscript.com", 1, 2048) ; open in a new tab

__IENavigate($oIE, "www.autoitscript.com", 1, 4096) ; open in a new background tab

Dale

Is there anything like __IEAttach() for connecting to existing tabs?

:D


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

_IEAttach works just as it is with most modes (except for WindowTitle and hwnd because they refer to the parent window and will give you a reference to only the active tab). Make sure you read the remarks in the 3.2.11.x beta helpfile for caveats about embedded and dialogbox modes.

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

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