Shoutbox

[Release] VLC What Im Playing - 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: [Release] VLC What Im Playing (/showthread.php?tid=80194)

[Release] VLC What Im Playing by GoUiDoS on 12-18-2007 at 04:10 PM

hello there,
This is my first submission to the forum, i've just discovered MP!L for like 3 days now.
A long time ago i made this Library for mIRC which shows the currently opened file in VLC, so i've decided to bring this to MSN.

I know, MSN is already capable of showing the "what i'm listening to" for VLC, but it doesn't work with all versions of the player, and moreover it shows sometimes the full path of the file, not really pretty.

For now, my very first version of this Script extracts the file currently opened from VLC process and sets it as what you are listening to.
When the file is a MP3 music, It displays the IDT3V1/2 tag instead.

Let me know any of your suggestions and new features/ideas for this script.

Thanks






RE: [Release] VLC What Im Playing by mynetx on 12-18-2007 at 04:22 PM

Nice work, GoUiDoS.

Suggestions for later versions:

  • build in an Options pane for choosing the style of the Status Message (e.g. Title - Artist instead of Artist - Album - Title)
  • execute the regsvr32 automatically using Shell.Run upon first script start (var Shell = new ActiveXObject("WScript.Shell");)
Maybe you also want to contact -dt- as he could integrate VLC support in his Music Now Playing script.
Regards,
RE: RE: [Release] VLC What Im Playing by GoUiDoS on 12-18-2007 at 04:30 PM

quote:
Originally posted by mynetx

[*]execute the regsvr32 automatically using Shell.Run upon first script start
I thought the regsvr32 was automatically executed by the <OleFiles> node in the scriptinfo.xml file during install ?
it seems to register automatically the dll on my computer when i install my script from scratch.
but maybe with older version of MP!L it doesn't work. i'll see what i can do about it.


The options pane is my next step, i plan to do it soon.
Thanks for your suggestions ;)
RE: [Release] VLC What Im Playing by mynetx on 12-18-2007 at 04:36 PM

As for the OLEFiles, that's right, but it can't be wrong to do it with

var Shell = new ActiveXObject("WScript.Shell");
Shell.Run("regsvr32 "+MsgPlus.ScriptFilesPath+"\\GoUiDoS.dll");

upon first script call. Then store a pref in registry to see that the regsvr32 has been executed when the script starts the next time.


RE: [Release] VLC What Im Playing by Spunky on 12-18-2007 at 05:29 PM

quote:
Originally posted by mynetx
As for the OLEFiles, that's right, but it can't be wrong to do it with

var Shell = new ActiveXObject("WScript.Shell");
Shell.Run("regsvr32 "+MsgPlus.ScriptFilesPath+"\\GoUiDoS.dll");

upon first script call. Then store a pref in registry to see that the regsvr32 has been executed when the script starts the next time.

Whats the point? just put a try statement when trying to call the DLL functions, if they fail then it didn't register and the script should be re-imported

RE: [Release] VLC What Im Playing by -dt- on 12-18-2007 at 05:35 PM

quote:
Originally posted by mynetx

Maybe you also want to contact -dt- as he could integrate VLC support in his Music Now Playing script.
theres already vlc support in the next version of mnp :P