Sign in to follow this  
Followers 0
nikink

Is there a way to detect is a process has stopped responding?

3 posts in this topic

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?

Share this post


Link to post
Share on other sites



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-)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0