Jump to content
Sign in to follow this  
jaweb

_IENavigate() and pop-ups

Recommended Posts

jaweb

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)

;)

Share this post


Link to post
Share on other sites
PsaltyDS

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

Share this post


Link to post
Share on other sites
jaweb

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 ?

Share this post


Link to post
Share on other sites
PsaltyDS

Maybe you could loop on WinList() with a "[CLASS: ]" specification.

;)


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

Share this post


Link to post
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
Sign in to follow this  

×