Solved

Winamp/WMP integration

Posted on 2004-11-19
8
367 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
Comment Utility
0
 
LVL 18

Expert Comment

by:armoghan
Comment Utility
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
Comment Utility
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
 

Author Comment

by:shenlong_wc
Comment Utility
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 18

Expert Comment

by:armoghan
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

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…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

771 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