jaweb Posted August 17, 2010 Share Posted August 17, 2010 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 More sharing options...
PsaltyDS Posted August 17, 2010 Share Posted August 17, 2010 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 More sharing options...
jaweb Posted August 17, 2010 Author Share Posted August 17, 2010 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 More sharing options...
PsaltyDS Posted August 17, 2010 Share Posted August 17, 2010 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 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