471,603 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,603 software developers and data experts.

getting current track playing in wmp programmatically

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?
*** Sent via Developersdex http://www.developersdex.com ***
Jan 21 '06 #1
1 3088
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Paul Fi" <na*******@hotmail.com> wrote in message
news:up**************@TK2MSFTNGP11.phx.gbl...
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?
*** Sent via Developersdex http://www.developersdex.com ***

Jan 21 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

303 posts views Thread by mike420 | last post: by
3 posts views Thread by Atul | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.