hutch Posted December 22, 2006 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
Uten Posted December 22, 2006 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
Uten Posted December 22, 2006 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
Moderators big_daddy Posted December 22, 2006 Moderators 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.")
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