getting current track playing in wmp programmatically

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul Fi

    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, systemlistview3 2 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 ***
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: getting current track playing in wmp programmaticall y

    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]
    - mvp@spam.guard. caspershouse.co m


    "Paul Fi" <nazar_fin@hotm ail.com> wrote in message
    news:upBexwoHGH A.1032@TK2MSFTN GP11.phx.gbl...[color=blue]
    > 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, systemlistview3 2 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 ***[/color]


    Comment

    Working...