Jump to content

_IECreate() make hidden instance visible


Recommended Posts

I am trying to automate some webpage logins ect.. with autoit using _IECreate().

My questions is if I use the below code to create a hidden webpage/IE process how can I bring that same instance visible so the user can see it without creating a new ie process? I looked at _IEAttach() but not sure if that is the correct function. I know the title of the window if it wasnt hidden but not sure what function I can use to make that same instance visible again.

_IECreate("https://www.webpage.com","",0,1)

Thanks,

The more and more I play/learn with autoit the more I like it.

GoogleDude

Edited by GoogleDude
Link to comment
Share on other sites

Strange but for some reason when I "_IEQuit($oIE)" it does close the IE Windows but the process still stays running. If AutoIt spawned off the iexplore.exe process in the first place should _IEQuit($oIE) close the Window and the Porcess? At lease that's what I read from the Help.

How could I get the PID of the iexplore.exe that my script opened via _IECreate()? I guess after _IEQuit() I could close the PID if I could find out which one it was. I just dont want to close all iexplore.exe via ProcessClose() as I may have other webpages or IETabs open that I dont want to close

GoogleDude

Edited by GoogleDude
Link to comment
Share on other sites

Multiple IE instances use the same iexplore.exe process. Wne the last instance attached is closed (quit) the process runs down.

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