kissme Posted January 7, 2010 Share Posted January 7, 2010 #include <IE.au3> $o_IE = _IECreate () _IENavigate ($o_IE, "http://www.whatver.com") _IELinkClickByText ($o_IE, "Open POPUP") _IEQuit($o_IE) Hi hopefully someone can help me. This simple script opens a browser, clicks a link then closes the browser. My problem is that the link opens a popup window and my _IEQuit command simply closes the first browser window. How would I close the popup also ? Thanks for any help. Link to comment Share on other sites More sharing options...
Pantera975 Posted January 7, 2010 Share Posted January 7, 2010 You can ctrlsend an ALT + F4 to that pop up. Or you can use ProcessClose() to just kill it as you would in task manager. (This will only work if you have no other IE's open) Link to comment Share on other sites More sharing options...
kissme Posted January 8, 2010 Author Share Posted January 8, 2010 Thanks will try those out Link to comment Share on other sites More sharing options...
Woongjinn Posted January 8, 2010 Share Posted January 8, 2010 (edited) #include <IE.au3> $o_IE = _IECreate () _IENavigate ($o_IE, "http://www.whatver.com") _IELinkClickByText ($o_IE, "Open POPUP") _IEQuit($o_IE) Hi hopefully someone can help me. This simple script opens a browser, clicks a link then closes the browser. My problem is that the link opens a popup window and my _IEQuit command simply closes the first browser window. How would I close the popup also ? Thanks for any help. Try something like: WinWaitActive("Choose a digital certificate", "") ControlClick("Choose a digital certificate", "", "Button3") I solved a similar issue with a pop-up to choose the digital certificate but that had an "ok" button. If you don't have an easy to access "ok" or "close" you could take a look at WinClose or WinKill and their friends... WinWaitActive("Pop-up Title", "") WinKill("Pop-up Title", "") EDIT: Here is post where I found the first two lines posted above. They were part of a really cool fuction for dealing with most of the system popups especially when they show up unexpectedly: _IEPopUps() Edited January 8, 2010 by Woongjinn Link to comment Share on other sites More sharing options...
iameaten Posted January 21, 2010 Share Posted January 21, 2010 Try something like: WinWaitActive("Choose a digital certificate", "") ControlClick("Choose a digital certificate", "", "Button3") I solved a similar issue with a pop-up to choose the digital certificate but that had an "ok" button. If you don't have an easy to access "ok" or "close" you could take a look at WinClose or WinKill and their friends... WinWaitActive("Pop-up Title", "") WinKill("Pop-up Title", "") EDIT: Here is post where I found the first two lines posted above. They were part of a really cool fuction for dealing with most of the system popups especially when they show up unexpectedly: _IEPopUps() Hi , I am facing the same issue. i my case i have used WinWaitActive and then WinClose.but in some pop ups there are no TITLE. WinWaitActive and WinClose required title as parameter. can you please tell me if there are no title then how can i close that pop-up. I have already posted topic on the this issue. How to close any POP-UPs if there is no title?? please provide your suggestion. Thanks, Chetan J. 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