Q. Run myApp is another specified app runs.

How to make myApp run if another (not Delphi app) runs. I think it should
stay in standby mode awaiting for a windows system message which runs
certain application.
And else, can I detect which application is exactly behind myApp on the
An example will be appreciated.
Thank you.