Jump to content

_IENavigate() and pop-ups


jaweb
 Share

Recommended Posts

What is the best way to manage dynamic pop-ups after _IENavigate($oIE, "http://example.com") ?

$oIE = _IECreate()
$hIE = _IEPropertyGet($oIE, "hwnd") 
WinSetState($hIE, "", @SW_MAXIMIZE) 
    _IENavigate($oIE, "http://example.com")
    _IELoadWait ($oIE)

I would like to move/minimize any additional windows created after _IELoadWait ($oIE)

;)

Link to comment
Share on other sites

Block 'em or handle 'em, those are your choices. Pop-up blocking is a feature of the browser (if implemented), not the script.

;)

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

Great.

Trying to figure how to minimize all HTML popup that's actually a new Internet Explorer window.

The script posted above will only wait for the original "$oIE = _IECreate()" function to finish load and ignores any new iexplore created.

How does Autoit get the newly created iexplore windows's "hwnd" in order to call WinSetState() to @SW_MINIMIZE it ?

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