Automatically Ending Non-Responsive Tasks

1.Start Regedit
2.Go to HKEY_CURRENT_USER\Control Panel\Desktop\AutoEndTasks
3.Set the value to be 1
4.In the same section, change the WaitToKillAppTimeout to the number of milliseconds you want.
reg file
REGEDIT4

Code:
[HKEY_CURRENT_USER\Control Panel\Desktop]"AutoEndTasks"="1"
"WaitToKillAppTimeout"="2000"