Shoutbox

Song information - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Song information (/showthread.php?tid=68900)

Song information by SnuZZer on 11-27-2006 at 02:57 PM

Hi.
Yes, it's me again :-$

Is there someone who can tell me how I can get information from Windows Media Player?
As an example the path, the length, the title.

I have looked in the NowPlaying-code, but it's a weird code.

I think that I must use a DLL, which i never have tried, but is it necessary?


RE: Song information by Felu on 11-27-2006 at 03:03 PM

I don't guess you looked into the code properly [Image: msn_tongue.gif]. Yes it uses a dll to get the information from WMP.

quote:
/*
The wmp dll has been modified by me to include artist and album information the orginal source is here
http://download.truelaunchbar.com/install/mcplugins/mcsdk.zip
*/

RE: Song information by SnuZZer on 11-27-2006 at 03:11 PM

Hi.
Ehhm.. I don't understand :-/

I looked in the NowPlaying-code five minutes ago.


RE: Song information by markee on 11-27-2006 at 03:12 PM

This link looks like it could be very helpful but you will need to convert it to JScript from the language that it is in already.  I found the kind of thing you were after about halfway down.  I recommend using an ActiveXObject like in iTunes+.  Good luck with coding it :cheesy:


RE: Song information by SnuZZer on 11-27-2006 at 03:19 PM

Hi.
I can't convert it :-O
I'm a bit new to Messenger Plus! Live-scriptet, maybe the project is to big :-/


RE: Song information by markee on 11-27-2006 at 03:23 PM

If you are new to scripting then I recommend something a little simpler, just start making a few basic scripts where you try to just test out how it all works first before you try linking in with other programs.  I've been scripting for about 4 months now and have only just built up the confidence to learn how to do this stuff properly and also linking in with DLLs.  My recommendation is to take it slow, you have plenty of time to get good at this stuff.


RE: Song information by SnuZZer on 11-27-2006 at 03:25 PM

Hi.
I have made some scripts, but not "big"-scripts. I have worked with Windows Media Player a bit, but this is harder.

All my scripts is danish and can be downloaded here:
http://www.snuzzer.dk/msgplus


RE: Song information by -dt- on 11-27-2006 at 03:46 PM

quote:
Originally posted by markee
This link looks like it could be very helpful but you will need to convert it to JScript from the language that it is in already.  I found the kind of thing you were after about halfway down.  I recommend using an ActiveXObject like in iTunes+.  Good luck with coding it :cheesy:
That doesnt get the current wmp COM object, it creates a new instance of it.

there are two ways that i know of to get the current one (or atleast access the properties of it)
1) remote the wmp control and fetch it that way (http://msdn.microsoft.com/library/default.asp?url...aplayercontrol.asp)
2) access it via a wmp plugin

remoting the wmp control is probably the best method (as it doesnt require wmp to load your plugin) but you'll have to code that yourself (you cant do it with a script)

the dll here
http://download.truelaunchbar.com/install/mcplugins/mcsdk.zip
is a wmp plugin and is pretty easy to install/use, though it lacks a few things (which you'll have to add and compile yourself)