Juvigy Posted October 23, 2009 Share Posted October 23, 2009 I need to use .Navigate2 method as i want to navigate to a link in a new tab.The problem is that the IE object doesnt change pointing to the new tab. I can get it using _IEAttach , but it only work if the page has finished loading. Any ideas how i can bypass that? I found an "NavigateComplete2 Event" but i dont know how i can install a IE event listener. Any ideas ? I dont want to use Sleep as the sleep time is always different when loading pages. Link to comment Share on other sites More sharing options...
DaleHohm Posted October 23, 2009 Share Posted October 23, 2009 What I have done is to put the _IEAttach into a While loop waiting for it to succeed, then move on with your new object. 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...
Juvigy Posted October 23, 2009 Author Share Posted October 23, 2009 10x Dale - that looks like a nice workaround. Any idea how i can trap the "NavigateComplete2 Event" ? Link to comment Share on other sites More sharing options...
DaleHohm Posted October 25, 2009 Share Posted October 25, 2009 ObjEvent 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