Shevilie Posted February 26, 2007 Share Posted February 26, 2007 Well what I need is to create a new IE and the _IECreate is not enough. Well the problem is that i want to load a url like this"c:\ bla bla bla\IEXPLORE.exe" http://myurl.comThis creates a new instance that is "different" from _IECreateSome session keeps "living" with _IECreateWell is there anyway I can create the explorer and attach it (safe there might be other explorer with same url) Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted February 26, 2007 Share Posted February 26, 2007 _IEAttach, and whats the difference i dont get it , your running a process with ieeplorer and then going to that url thats the same as _IECreate("http://myurl.com") Link to comment Share on other sites More sharing options...
Shevilie Posted February 26, 2007 Author Share Posted February 26, 2007 (edited) _IEAttach I've lookede at that, but how can I be sure its the right IE i Attach to (as said often more than one copy of the ei open) Prove of IECreate is not the same as running IEXPLORE #include <IE.au3> $oIE = Run("""" & @ProgramFilesDir & "\Internet Explorer\IEXPLORE.EXE"" http://www.qrest.net") Sleep(5000) MsgBox(0,0,"User: auto Pass: it") _IECreate("http://www.qrest.net") $oIE = Run("""" & @ProgramFilesDir & "\Internet Explorer\IEXPLORE.EXE"" http://www.qrest.net") Edited February 26, 2007 by Shevilie Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
DaleHohm Posted February 26, 2007 Share Posted February 26, 2007 Have you looked at the documentation for _IEAttach?There are many ways to determine which IE instance to attach to:Title = (Default) sub-string of main document titleWindowTitle = sub-string of full window title (instead of document title)URL = sub-string or url of the current pageText = sub-string in text from the body of the current pageHTML = sub-string in html from the body of the current pageHWND = hwnd of the browser windowDale 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...
Shevilie Posted February 26, 2007 Author Share Posted February 26, 2007 (edited) Yea but none of them seemed useful They all depend on the title of the window / url and as I stated tehere will be more than one of each copy open (maybe) And the problem is if you run the example is I get a logon box In other words how would you attach this $oIE = Run("""" & @ProgramFilesDir & "\Internet Explorer\IEXPLORE.EXE"" http://www.qrest.net") Edited February 26, 2007 by Shevilie Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
DaleHohm Posted February 26, 2007 Share Posted February 26, 2007 They all depend on the title of the window / urlHuh? I listed 6 modes - the first 3 are related to Title or URL, the last 3 are not. Please read again.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...
Shevilie Posted February 26, 2007 Author Share Posted February 26, 2007 (edited) Mybad Looking again... Edited February 26, 2007 by Shevilie Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
Shevilie Posted February 26, 2007 Author Share Posted February 26, 2007 Well Cant use the two first since they actually might contain the same data (its a database) and the second, dont know how you would get the hwnd.. But ou got me into something else $oIE = Run("""" & @ProgramFilesDir & "\Internet Explorer\IEXPLORE.EXE"" about:blank") WinWait("about:blank") $oIE = _IEAttach("about:blank") _IENavigate("http://www.qrest.net") Seems to work fine Thx for the help Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
DaleHohm Posted February 26, 2007 Share Posted February 26, 2007 Whatever. Glad you got what you wanted. 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