newb2007 Posted December 13, 2007 Share Posted December 13, 2007 Hello =) Ok... I want autoit to run in backround, if a program doesn't answer (for 20 seconds) autoit kills the program.. Link to comment Share on other sites More sharing options...
PsaltyDS Posted December 13, 2007 Share Posted December 13, 2007 Hello =)Ok... I want autoit to run in backround, if a program doesn't answer (for 20 seconds) autoit kills the program..So... you want a loop: See While/WEnd in the help file.Then... you want a 20 second timer: See TimerInit() and TimerDiff() in the help file.And... you want to kill a program: See WinClose() and ProcessClose() in the help file.There is no working definition of "program doesn't answer", so that's as far as you get... Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
newb2007 Posted December 13, 2007 Author Share Posted December 13, 2007 (edited) There is no working definition of "program doesn't answer", so that's as far as you get... maaaa, thx for your time Is there any language that can discover if a program doesn't answer :I? Edited December 13, 2007 by newb2007 Link to comment Share on other sites More sharing options...
weaponx Posted December 14, 2007 Share Posted December 14, 2007 Are you talking about killing a hung (unresponsive) process? Link to comment Share on other sites More sharing options...
newb2007 Posted December 14, 2007 Author Share Posted December 14, 2007 Are you talking about killing a hung (unresponsive) process?yeap Link to comment Share on other sites More sharing options...
weaponx Posted December 14, 2007 Share Posted December 14, 2007 Go to Run and enter Regedit.Browse to HKEY_CURRENT_USER\Control Panel\DesktopHere you will find a string called as Auto End Task, set its value to 1 by double clicking it. This means any hung program will be killed instantaneously.Now suppose if you want to give some time, as some programs come back to normal in few minutes, Find a key called as WaitToKillAppTimeout, change the value to the value you want. You have to enter value in milliseconds though. Link to comment Share on other sites More sharing options...
newb2007 Posted December 14, 2007 Author Share Posted December 14, 2007 (edited) Go to Run and enter Regedit.Browse to HKEY_CURRENT_USER\Control Panel\DesktopHere you will find a string called as Auto End Task, set its value to 1 by double clicking it. This means any hung program will be killed instantaneously.Now suppose if you want to give some time, as some programs come back to normal in few minutes, Find a key called as WaitToKillAppTimeout, change the value to the value you want. You have to enter value in milliseconds though.hmm the value is already set to 1k ms (wait to kill app timeout).. takes more time than that before any program is killed ;/ Edited December 14, 2007 by newb2007 Link to comment Share on other sites More sharing options...
weaponx Posted December 14, 2007 Share Posted December 14, 2007 It probably isn't completely unresponsive. Link to comment Share on other sites More sharing options...
newb2007 Posted December 14, 2007 Author Share Posted December 14, 2007 It probably isn't completely unresponsive.ok ok.. thx.. i try various ms and see if anything change^ Link to comment Share on other sites More sharing options...
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