topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday December 13, 2024, 5:15 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA - On task termination perform an action  (Read 17501 times)

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,069
    • View Profile
    • Donate to Member
IDEA - On task termination perform an action
« on: September 19, 2005, 07:41 PM »
How about a utility that would allow a specified command line or application to be run when a process exits, or drops to 0% CPU usage for more than x minutes?

I'm thinking of using shutdown.exe primarily, but it would be really good if it were more generic, and perhaps allow simple batch processing for apps that don't have batch options, or sequencing of processing (eg. convert video data, on exit run ISO builder, on exit burn to DVD, on exit shutdown).

Not sure if this is a coding snack or something to be added to an existing project?

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 3,205
    • View Profile
    • Donate to Member
Re: IDEA - On task termination perform an action
« Reply #1 on: September 20, 2005, 03:59 AM »
How about a utility that would allow a specified command line or application to be run when a process exits, or drops to 0% CPU usage for more than x minutes?

Have you ever looked at PowerPro, freeware macro program for Windows?
http://powerpro.webeddie.com/index.html

Beginners user group / mailing list:
http://groups.yahoo..../powerpro-beginners/

Main mailing list:
http://groups.yahoo.com/group/power-pro/

PC Rangers third-party PowerPro support
http://powerpro.pcrei.com
Contains archives of the user groups, the "Wink" based Flash demos, etc.

I'm moderately sure there was a question similar to yours in a recent post in the beginners group recently.  With PowerPro, the answer seems to be "Yes: now how much time do you want to put into making it work?"


Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,069
    • View Profile
    • Donate to Member
Re: IDEA - On task termination perform an action
« Reply #2 on: September 20, 2005, 05:42 AM »
That's pretty much my experience of PowerPro. Yes I have seen it, yes it is currently installed, no it isn't currently being used.

Trouble is it is just too damn complicated to make use of. I have a very short attention span and every time I think "I'll have another go at PowerPro" it holds my attention for about half an hour and then I want to throw something at it.

Oh well, maybe "I'll have another go at PowerPro"  :wallbash:

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: IDEA - On task termination perform an action
« Reply #3 on: September 20, 2005, 08:58 AM »
this sounds like something i should add to process tamer..
i'm currently mulling over adding a kind of special scripting system to it.

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,069
    • View Profile
    • Donate to Member
Re: IDEA - On task termination perform an action
« Reply #4 on: September 20, 2005, 09:55 AM »
That's what my final comment was about.

It would be nice to be able to terminate specific tasks on certain conditions (one being that it has been idle for a period of time) and then respond to that termination in a predefined way.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: IDEA - On task termination perform an action
« Reply #5 on: September 20, 2005, 11:46 AM »
 :) Check out my ProcessGuard v1.1! at https://www.donation...ndex.php?topic=747.0.

I think it will do what you want.

You'll find the downloads and more info at Skrommel Software.

Skrommel

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,069
    • View Profile
    • Donate to Member
Re: IDEA - On task termination perform an action
« Reply #6 on: September 20, 2005, 12:13 PM »
Thanks - I had looked at it before and forgotten!!

Yes that does do the job.

Not a criticism (more a question) but is there anyway in AHK to design a user interface. Some of your tools are really useful but they would be much more user friendly with a front end rather than having to edit an ini file?

I haven't looked at AHK much yet but if there are facilities for front end design I wouldn't mind helping on some of these tasks.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: IDEA - On task termination perform an action
« Reply #7 on: September 20, 2005, 02:43 PM »
 :) There is, GUI is one of Chris' latest additions. There's even a GUI builder called SmartGUI.

The problem is that I tend to spend more time on the UI and icons than on the script, so if you feel like it, please do!

Skrommel

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,069
    • View Profile
    • Donate to Member
Re: IDEA - On task termination perform an action
« Reply #8 on: September 20, 2005, 03:38 PM »
Yeah, I had a look after posting and downloaded SmartGui.

Trouble is I'm not sure how to design an interface and then incorporate your code to actually do the jobs.

I suppose ideally what I was thinking of was to create a config interface to generate the ini file, rather than editing the ini directly.

If you can give me some hint how to bind the two bits together to acheive this I don't mind having a stab at it ...

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: IDEA - On task termination perform an action
« Reply #9 on: September 20, 2005, 03:58 PM »
 :) That's what I plan, too.

Unfortunately, GUI is one of AHK's three "string" based all-in-one functions with a help file to match, so you really have to get you head around all of it before you can make any working code.

I haven't.

Skrommel