Solved

Winamp/WMP integration

Posted on 2004-11-19
8
375 Views
Last Modified: 2010-08-05
Hi,

is there anyway i can get the title of a song playing in winamp or wmp10 using vb.net ?
0
Comment
Question by:shenlong_wc
  • 4
  • 3
8 Comments
 
LVL 18

Accepted Solution

by:
armoghan earned 125 total points
ID: 12623002
0
 
LVL 18

Expert Comment

by:armoghan
ID: 12623023
For WMP, easer way is to embed it into your application, then you can easily control it
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncodefun/html/code4fun06272003.asp
0
 
LVL 6

Expert Comment

by:The_Biochemist
ID: 12623375
If you download the Windows media SDK there are nice easy classes to help you avoid having to use the embedded player and you also have a VERY comprehensive set of instructions for EVERY aspect of windows media player - PS the encoder is really good too.
 See link for more info

http://www.msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay10/mmp_sdk/windowsmediaplayer10sdk.asp
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

Author Comment

by:shenlong_wc
ID: 12650731
hi biochemist,
seems like to write a plugin for wmp10 to draw out the title i need c++ , but i'm working with vb.net

hi armoghan,
the wmp link issn't exactly what i had in mind ... i need the files to be playing in the 'original' wmp10, not create a seperate player, but the winamp link was exactly what i needed

Thanks !

0
 
LVL 18

Expert Comment

by:armoghan
ID: 12651965
Ok the simplest way to get the title of the Song from Winamp is

Dim prc As Process() = Process.GetProcessesByName("winamp")
        For DOS_hwnd = 0 To prc.Length - 1
            Console.WriteLine(prc(DOS_hwnd).MainWindowTitle())
        Next

After wards you can substring to "- Winamp"
0
 

Author Comment

by:shenlong_wc
ID: 12651989
Oh i already found winamp's from the link you gave.
that was really helpful .
Is there anyway i can get it from wmp just as easily ?

if not i'll just accept your first reply.

Thanks !
0
 
LVL 18

Expert Comment

by:armoghan
ID: 12652229
Could not find any easy way of getting the Title.
One way is you can make a plug-in for WMP and then interact with it.

Also see this . It may make some sense to you as I could not understand if it can be helpful in finding the title or not
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncodefun/html/code4fun06272003.asp
0
 

Author Comment

by:shenlong_wc
ID: 12652856
yeah i read that somewhere too but the problem in that the plugins are in c++ , and i've already returned all my c++ stuff to my teacher ... lol

that link is the same one as the second link, isn't it ? it's problem was that it required an embedded player, but i wanted to play my mp3 from the original wmp10 (no point rebuilding the whole wmp i think )

but anyway, thanks for your help.
accepted your first ans

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now