getting current track playing in wmp programmatically

P

Paul Fi

im writing a C# program that tries to get the currently playing song in
a
seperate windows media player instance (external app)

i found out that there might be a way to do that using the windows
messaging
system.

some how i was able to use the win32 funtion findwindow() to get the
handle
for windows media player host, systemlistview32 and for wmpplaylist
using
spy++.

but now im trying to use the win32 function sendmessage() to get at
least
the index of the currently playing song in windows media player, and i
still
cant figure this out

does anyone know how to do that?
 
N

Nicholas Paldino [.NET/C# MVP]

Paul,

I don't think that there is a message that will tell you this. I think
that if there was a way to actually do this, it would be through automation,
obtaining the running instance, and then accessing the player information
that way.

I would search for information on accessing the automation interface for
the windows media player.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top