Jump to content
Sign in to follow this  
newb2007

Kill

Recommended Posts

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

Share this post


Link to post
Share on other sites

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 by newb2007

Share this post


Link to post
Share on other sites
  • Go to Run and enter Regedit.
  • Browse to HKEY_CURRENT_USER\Control Panel\Desktop
  • Here 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.

Share this post


Link to post
Share on other sites

  • Go to Run and enter Regedit.
  • Browse to HKEY_CURRENT_USER\Control Panel\Desktop
  • Here 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 by newb2007

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  

×
×
  • Create New...