Jump to content

Need to create a IE


Shevilie
 Share

Recommended Posts

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.com

This creates a new instance that is "different" from _IECreate

Some session keeps "living" with _IECreate

Well 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

_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 :whistle:

#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 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

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 title

WindowTitle = sub-string of full window title (instead of document title)

URL = sub-string or url of the current page

Text = sub-string in text from the body of the current page

HTML = sub-string in html from the body of the current page

HWND = hwnd of the browser window

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

Yea but none of them seemed useful :whistle: 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 :lol:

In other words how would you attach this :)

$oIE = Run("""" & @ProgramFilesDir & "\Internet Explorer\IEXPLORE.EXE"" http://www.qrest.net")

Edited 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

They all depend on the title of the window / url

Huh? 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

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 :whistle:

$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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...