What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Song information

Song information
Author: Message:
SnuZZer
Full Member
***

Avatar

Posts: 114
32 / Male / Flag
Joined: Jun 2006
O.P. Song information
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?
11-27-2006 02:57 PM
Profile E-Mail PM Web Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: Song information
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
*/
11-27-2006 03:03 PM
Profile E-Mail PM Web Find Quote Report
SnuZZer
Full Member
***

Avatar

Posts: 114
32 / Male / Flag
Joined: Jun 2006
O.P. RE: Song information
Hi.
Ehhm.. I don't understand :-/

I looked in the NowPlaying-code five minutes ago.

This post was edited on 11-27-2006 at 03:11 PM by SnuZZer.
11-27-2006 03:11 PM
Profile E-Mail PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: Song information
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:
[Image: markee.png]
11-27-2006 03:12 PM
Profile PM Find Quote Report
SnuZZer
Full Member
***

Avatar

Posts: 114
32 / Male / Flag
Joined: Jun 2006
O.P. RE: Song information
Hi.
I can't convert it :-O
I'm a bit new to Messenger Plus! Live-scriptet, maybe the project is to big :-/
11-27-2006 03:19 PM
Profile E-Mail PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: Song information
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.
[Image: markee.png]
11-27-2006 03:23 PM
Profile PM Find Quote Report
SnuZZer
Full Member
***

Avatar

Posts: 114
32 / Male / Flag
Joined: Jun 2006
O.P. RE: Song information
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
11-27-2006 03:25 PM
Profile E-Mail PM Web Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: Song information
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)

This post was edited on 11-27-2006 at 03:52 PM by -dt-.
[Image: dt2.0v2.png]      Happy Birthday, WDZ
11-27-2006 03:46 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On