java
sql
html
css
ajax
python
mysql
linux
xcode
ruby-on-rails
eclipse
flash
html5
algorithm
oracle
apache
mvc
asp
api
Find the process id of your app with TASKLIST. Then plug it into this one-liner:
TASKLIST
perl -e "sleep 5 while kill 0,<PID>;system'explorer http://youtu.be/CsbYx6hevoQ'"
My best guess is that this is not possible, and is certainly not cross-platform, unless you write an application in Perl. For this, I would suggest the Prima toolkit as it is a cross-platform Perl GUI toolkit that is easy to install. Having a Prima application respond to a minimization or close event should be easy enough.