Using C #, how can I get the name of the song, artist, etc. that is currently playing in Windows Media Player? Applications like MSN Messenger / Google Talk do this. Thanks
For C #
I spent hours trying to get it to work on my program. I finally figured it out.
This solution assumes that you either control the Windows media player in the form of your project, or you created the object through code.
, .
WMPLib.IWMPMedia song = wmp.newMedia(@"C:\SongName.mp3"); string tmpArtist = song.getItemInfo("Artist"); string tmpTitle = song.getItemInfo("Title");
, , , , , , .
Wmp.dll.
:
http://msdn.microsoft.com/en-us/library/dd563844(VS.85).aspx
Source: https://habr.com/ru/post/1712818/More articles:Update view controller - iphoneHudson "stops" / cancels work, leaving processes behind - tomcatBackground mouse - c #Upper limit for row count in open source databases? - sqlHow to remove headers in an ISAPI filter? - cJEXCELAPI for Android - androidAndroid and IOException - strange error - javaSetting up Gedit for development in C ++ - c ++How to encode this form? - htmlCFExecute doesn't seem to work - coldfusionAll Articles