Jump to content

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


nikink
 Share

Recommended Posts

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?

Link to comment
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.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...