Solved

Winamp/WMP integration

Posted on 2004-11-19
8
379 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Generate Unique ID in VB.NET 21 129
How to get a Powershell script to launch from Visual Studio 20 93
Filtering a datagrid view 8 42
visual studio vb.net windows onkeyup 2 39
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

739 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