Shoutbox

Get full file path... - 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: Get full file path... (/showthread.php?tid=71289)

Get full file path... by mad_willsy on 02-01-2007 at 05:59 PM

How do i get the full file path of the currently playing file in WMP? - Cheers

Wierd, I just got an email saying there was a reply, and i can't see it :S


RE: Get full file path... by tryxter on 02-01-2007 at 07:39 PM

That's because I wrote something that after some research, I found it wasn't truth. :P


RE: Get full file path... by mad_willsy on 02-01-2007 at 07:51 PM

Oh, If its not the truth...

quote:
I think that's not possible, but I can't guarantee that.
According to MsgPlus! Live documentation, the only thing retrieved by the property... (visit the thread to read more)


Can I have a snippet - PLEASEEE!
RE: Get full file path... by tryxter on 02-01-2007 at 07:54 PM

I've searched around the forum, and I found some threads that can help you and you already have been there.


RE: Get full file path... by mad_willsy on 02-01-2007 at 07:59 PM

:s - I havn't seen a snippet for this...


I searched


http://shoutbox.menthix.net/basicsearch.php?do=se...=&lookin=msg&sort=


No luck!

I been searching and searching - no luck - PLEASE HELP!


RE: Get full file path... by roflmao456 on 02-01-2007 at 10:03 PM

quote:
Originally posted by mad_willsy
I been searching and searching - no luck - PLEASE HELP!

well if you get the wmp control on your script :

code:
var WMP = new ActiveXObject("WMPlayer.OCX.7");

WMP.url = "http://www.pluscafe.co.uk/roflmao/Data/MyBallz.mp3";

WMP.update()
WMP.controls.play()


WMP.URL is what you are aiming for.

dont double post. use the [Image: edit.gif] button instead please ;)
RE: Get full file path... by mad_willsy on 02-03-2007 at 06:11 PM

So, if I put

code:
var WMP = new ActiveXObject("WMPlayer.OCX.7");



then the filepath will be stored in WMP.url?
RE: Get full file path... by roflmao456 on 02-04-2007 at 12:25 AM

well, not from the real player.. lol

only on the script... im afraid :(


EDIT: Why dont you get the script Now Playing? it can have the current song in wmp..


RE: Get full file path... by mad_willsy on 02-05-2007 at 07:10 PM

Because the script is for my needs. It needs to tell if SamBC or WMP is open and then use the apropriate player as its source. No script supports both - I looked.

So nobody has a snippet to get the location of the currently plying song in WMP?


RE: Get full file path... by matty on 02-05-2007 at 08:59 PM

Look at the script NowPlaying. It includes a dll that is used to read this information. Take a look at it.


RE: Get full file path... by mad_willsy on 02-05-2007 at 09:02 PM

Thanks, but how do i take the information out of the dll?


RE: Get full file path... by matty on 02-05-2007 at 09:04 PM

You don't you include the dll in your script pack and use it. If we had a snippet to give you for it we would but we don't.


RE: Get full file path... by mad_willsy on 02-05-2007 at 09:13 PM

I think I get you now. I scan the file to find out how the songs are sent. Copy this code and any releted functions. Copy the .dll file in the NowPlaying script to my package. And then test test test. I'll post back on how i get on.


RE: Get full file path... by -dt- on 02-06-2007 at 01:41 AM

quote:
Originally posted by Matty
Look at the script NowPlaying. It includes a dll that is used to read this information. Take a look at it.
it doesnt get file path, least not yet anyway