nikink Posted September 8, 2006 Posted September 8, 2006 As the title says, is there a way to detect if a process has stopped responding and thus needs WinKill or ProcessClose to exit out of it? I'm still trying to automate the Nero Geeral Cleantool and once every 4 times or so the Cleantool will freeze at a certain point, so my autoit script justs idles in the background waiting for the next phase to happen. If I manually click on the close window button I get the XP warning windows "This Process has stopped responding, are you sure you want to exit?". It would be nice if I could set the script to detect the frozen state and kill it. Anyone? Please?
GaryFrost Posted September 8, 2006 Posted September 8, 2006 maybe $v_ret = DllCall("user32.dll","int","IsHungAppWindow", "hwnd", $hwnd) If $v_ret[0] Then MsgBox(0,"HungApp", "Application is Hung") you would need the handle to the window. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
nikink Posted September 8, 2006 Author Posted September 8, 2006 maybe $v_ret = DllCall("user32.dll","int","IsHungAppWindow", "hwnd", $hwnd) If $v_ret[0] Then MsgBox(0,"HungApp", "Application is Hung") you would need the handle to the window. Cool! Thanks for that, I'll give it a try. B-)
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