It is currently May 2nd, 2024, 6:55 pm

Customizing now playing plugin

Share and get help with Plugins and Addons
SevFTW
Posts: 1
Joined: July 9th, 2012, 5:29 am

Customizing now playing plugin

Post by SevFTW »

Is there a way to have multiple media players going using this plugin?

I would like to have the plugin display VLC player when I have something playing in that and winamp when winamp is playing.

This is the current code:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
by Dashie36

[Variables]
PlayerName=Winamp
;look here for the supported player=   http://rainmeter.net/cms/Plugins-NowPlaying
;change the playername with your player
;iTunes
;foobar2000
;MediaMonkey
;Winamp
;wmp   for WindowsMediaPlayer
FontFace=Segoe WP
FontFace1=geosanslight
FontFace2=Segoe WP semibold
FontColor=255,255,255,140
FontColor2=255,255,255,220
FontSize=28
[MeterTitle]
Meter=String
FontFace=#FontFace#
FontSize=#FontSize#
StringStyle=normal
FontColor=#FontColor#
StringEffect=none
FontEffectColor=0,0,0,50
AntiAlias=1
MeasureName=MeasurePlayer
Text=%1
X=20
Y=50

[MeterArtist]
Meter=String
FontFace=#FontFace2#
FontSize=#FontSize#
StringStyle=BOLD
FontColor=#FontColor2#
StringEffect=border
FontEffectColor=0,0,0,50
AntiAlias=1
MeasureName=MeasureArtist
StringCase=Upper
X=0
Y=15

[MeasurePlayer]
Measure=Plugin
Plugin=NowPlaying
PlayerName=#PlayerName#
PlayerType=Title
PlayerPath=

[MeasureArtist]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=Artist

[MeasureCover]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[MeasurePlayer]
PlayerType=Cover

[MeasureState]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[MeasurePlayer]
PlayerType=State
Substitute="0":"images/Play.png","1":"images/Pause.png","2":"images/Play.png"

[Style]
FontFace=#FontFace1#
FontSize=10
StringStyle=BOLD
FontColor=255,255,255,250
StringEffect=none
FontEffectColor=0,0,0,50
AntiAlias=1
/
Would Secondary measures do anything?
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Customizing now playing plugin

Post by MerlinTheRed »

I guess you can do this in some way by checking which one of these players is currently running and setting the PlayerName variable accordingly (perhaps you can use the Process plugin for this). Of course you'd have to define some order of importance when more than one of those applications is running so only one of them is controlled.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
EliteLucker
Posts: 46
Joined: June 29th, 2012, 9:06 am

Re: Customizing now playing plugin

Post by EliteLucker »

it seems that VLC 2.0.2 not working

http://kredoc.deviantart.com/gallery/#/d4990t3 and the cad lib 1.0.2 from here http://code.google.com/p/vlc-libcad/downloads/list

but i dont see anything with WMP it works ( i change the playername from WMP to CAD)

EDIT:

The Problem is on x64 Win 7 with VLC x64