newtothis Posted January 31, 2008 Share Posted January 31, 2008 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 Link to comment Share on other sites More sharing options...
DaleHohm Posted January 31, 2008 Share Posted January 31, 2008 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 Link to comment Share on other sites More sharing options...
newtothis Posted January 31, 2008 Author Share Posted January 31, 2008 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.DaleThanks 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. Link to comment Share on other sites More sharing options...
DaleHohm Posted January 31, 2008 Share Posted January 31, 2008 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 Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 31, 2008 Share Posted January 31, 2008 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 DaleIs there anything like __IEAttach() for connecting to existing tabs? 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 Link to comment Share on other sites More sharing options...
DaleHohm Posted January 31, 2008 Share Posted January 31, 2008 _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 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