Controlling An External Windows Program From A Delphi App
Posted on 2004-08-05
Not sure if this is possible, but if you don't ask... :)
I want to call Winamp from my application and play some music while my app waits for Winamp to finish. This I have already done.
When the music ends and Winamp closes, control passes back to my app. This is OK, but what I want to do is to be able to press say the X key and close Winamp before the music has finished.
First thoughts suggest that it's not possible as my app loses focus when Winamp (set to Always On Top) is running, so there's nothing to process keystrokes. Am I right in thinking that pressing X would be intercepted by Winamp? If so, there doesn't appear to be a keyboard shortcut to exit Winamp (in the version I'm using anyway).