End Not Responding Programs Automatically By Terminating Hung Process

We hate to see not responding programs in Windows 7 which take a long time to respond. Many times those applications waste our valuable time. There is a registry tweak in Windows 7 to end hung applications automatically on a computer. We need to enable auto end task feature for non-responding programs and set time out for hung programs. By setting the value high, we give enough time for those processes to back working. If we set the value low, after crossing the time limit, those applications will close automatically. It is my duty to warn you as it is a registry tweak, it is better you take a backup of your current registry before changing any values.

Automatically Terminate Hung Programs

To enable auto end for hung programs in Windows 8 and 7 computer, follow the steps below.
  1. Start Run

    Press [Windows ] + [R] to get Run. If you want to enable Run in Windows 7 Start Menu, follow the instructions provided in the link below.
    How to Enable Run in Start Menu

  2. Open Registry Editor

    Type regedit on Run and press enter. Now the registry editor will open.
    close hung application automatically

  3. Go to HKEY_CURRENT_USER\Control Panel\Desktop

  4. Change values

    Now we need to add the following new values here. Please note that if some keys are not present we need to create new keys with the name and value provided below. You can change the values here if you require different timing for closing hung processes on your laptop. Time is calculated in Milli seconds.

    • "WaitToKillAppTimeout"="2000"
    • “AutoEndTasks"="1"
    • "HungAppTimeout"="1000"
    • "LowLevelHooksTimeout"="1000

    kill hung

    If you cannot find the keys in the list you can create new keys with the value provided above. Please note that the time value is in Milli seconds.
Now onwards Windows 7 will automatically kill the programs which take long period to respond.

Related Articles
  1. View or Remove saved Wireless networks

  2. Stop Windows 7 from showing Recently Opened Programs in Start menu

  3. How to Open a Port in Microsoft Firewall

Technology blog


Dead Man Sami said...

Thanks for the tip man.,but would you pleasetrell hat which type of new value should we use?

Kor Kah Yan said...

would you please tell which type of new value should we use?

Siju George said...

To end the not responding programs automatically, add the following values are:


David said...

Let me try your guide. Thanks for publishing.

Ahmed said...

Yahoo Messenger installed in my Windows 7 computer freeze for long and then I need to close it by task manager. will this trick work for the Yahoo messenger too?? Thanks for your advice.

TNHermit said...

And what do you do if its your browser and mail all the time. I have yet to find a program that doesn't suffer the same fate

MKilareski said...

I have a similar problem. Instead of killing the program, I just want the computer to wait to respond. What would the setting be to just have the computer wait?

Here's the situation: I have an older touchscreen program running in a public space. When the user rapidly touches the screen faster than the program can respond a "program x has stopped responding" window pops up. The user then is given the option to either wait (good choice) or end program (bad choice). Is there a way to either disable this popup, disable the "end program" option, or automatically choose the "wait" option?


Admin said...

@ MKilareski
If you want the computer to wait more, you can simply increase the wait time instead reducing as given in this article.

Cisa said...

Thanks buddy I love your trick to close non responding programs automatically.