Is WinAMP Running Yet?
This is my first post. Let me
complement you on an excellent API
for this product. My program can
control a running WinAMP as the
documentation describes. It can
get WinAMP to write the playlist to
it's winamp.m3u. Yea, nice API.
A search on the word "launch"
and on "ShellExecuteEx" didn't
come up with an answer.
I'm launching WinAMP from the
Windows app with ShellExecuteEx().
This function returns true if
it is successful.
But it seems to take a second
or two for WinAMP to be up and
ready. A call to
that immediately follows the
ShellExecuteEx command will
When WinAMP is up and running,
I'd like to display the playlist
so the user knows they can
select a track.
What are you folks doing to
get WinAMP's handle and to display
the playlist once it's running?
I'm thinking a timing loop
where FindWindow() is called
several times a second until
WinAMP is running. Better yet
would be a message from WinAMP to
my application, but I don't know
of a way to tell WinAMP to inform
this application that it is ready.