topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday April 18, 2024, 11:58 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: Run on exit  (Read 5795 times)

johnnyzero

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 25
    • View Profile
    • Donate to Member
IDEA: Run on exit
« on: September 28, 2007, 12:03 PM »
I'm trying to find some kind of utility that will monitor a specific process (app, window?) and run another program when the first application is closed.

Here's what I'm trying to do: run a specific backup utility (w/ some command line arguments) whenever my client quits Thunderbird.

Any input/advice will be much appreciated.

best,
JohnB

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: Run on exit
« Reply #1 on: September 28, 2007, 01:30 PM »
Here's one solution for your problem:
I've made one ahk script that accepts 2 command line parameters: the first program and the second program.
It'll launch the first program, and when that program is closed, it'll launch the second one.
I've included a demo shortcut that demonstrates how to use this program.

So, configure the shortcut properly and just have your client open thunderbird through this it.

(the program is attached to this post, both in source-code and compiled version.)
« Last Edit: September 28, 2007, 01:32 PM by jgpaiva »