hutch Posted December 22, 2006 Share Posted December 22, 2006 how to check if an IE windows created by _IECreate () has been closed by user ? there is a _IE command ? I don't want to use WinExists THX Link to comment Share on other sites More sharing options...
Uten Posted December 22, 2006 Share Posted December 22, 2006 Do you want to take action when the window is closed by a user (as in ALT+F4 or clicking the close button)? Can't you register for a close or exit event from the object? ObjEvent($oIE, "MyCloseHandler","Don't know this part")? Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
Uten Posted December 22, 2006 Share Posted December 22, 2006 (edited) The event is OnQuit (in VB). Here you find a nice listEDIT: Crap I nead new glasses. It is OnQuit and not OnClose. I'm testing a little now but can't get it to work.. Edited December 22, 2006 by Uten Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted December 22, 2006 Moderators Share Posted December 22, 2006 This would be the most efficient way I know of. #include <IE.au3> $sURL = "www.google.com" $oIE = _IECreate($sURL) $HWnd = _IEPropertyGet($oIE, "hwnd") While WinExists($HWnd) Sleep(100) WEnd MsgBox(0, "Notice!", "The browser was closed.") Link to comment Share on other sites More sharing options...
hutch Posted December 22, 2006 Author Share Posted December 22, 2006 thanks a lot ,it work perfectly 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