DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IDEA: Run on exit  (Read 7,460 times)

johnnyzero

  • Participant
  • Joined in 2006
  • *
  • Posts: 25
IDEA: Run on exit
« on: September 28, 2007, 05: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

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: IDEA: Run on exit
« Reply #1 on: September 28, 2007, 06: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, 06:32 PM by jgpaiva »

Original address: https://www.donationcoder.com/forum/index.php?topic=10177.0