It is currently May 7th, 2024, 6:20 pm

Spofity Rainmeter skin help

Get help with creating, editing & fixing problems with skins
Qluxzz
Posts: 8
Joined: February 2nd, 2013, 1:26 pm

Spofity Rainmeter skin help

Post by Qluxzz »

Hi i have been searching for how my problem might me solved but i have turned to this forum instead.

I have the Spotify skin for Rainmeter installed with some custom skins.
http://browse.deviantart.com/customization/skins/sysmonitor/rainmeter/?q=spotify#/d38vgy6

The problem I am having is that every part of the song is on one line where as I would like it to be one for the title and another one for the artist and so on.


The code below here is what i need help with.

Code: Select all

[Variables]
@Include=#CurrentPath#Variables.inc


[mProcessPID]
Measure=Plugin
Plugin=Plugins\Perfmon.dll
PerfMonObject="Process"
PerfMonCounter="ID Process"
PerfMonInstance=Spotify
PerfMonDifference=0
UpdateDivider=1

[mPlaying]
Measure=Calc
Formula=mProcessPID > 0 ? 1 : 0
	IfEqualValue=0
	IfEqualAction=!Execute [!RainmeterShowMeter MeterTitle][!RainmeterHideMeter Track][!RainmeterHideMeter Artist][!RainmeterHideMeter MeterTitle2][!RainmeterHideMeter MeterTitle3][!RainmeterHideMeter MeterTitle4][!RainmeterHideMeter NextSpotify][!RainmeterHideMeter PrevSpotify][!RainmeterHideMeter PlaySpotify][!RainmeterHideMeter PauseSpotify]
	IfAboveValue=0
	IfAboveAction=!Execute [!RainmeterHideMeter MeterTitle][!RainmeterShowMeter Track][!RainmeterShowMeter Artist][!RainmeterShowMeter MeterTitle2][!RainmeterShowMeter MeterTitle3][!RainmeterShowMeter MeterTitle4] [!RainmeterShowMeter NextSpotify][!RainmeterShowMeter PrevSpotify][!RainmeterShowMeter PlaySpotify][!RainmeterShowMeter PauseSpotify]
	UpdateDivider=0,0001


[mArtist]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=SpotifyMainWindow	
	
	
[mTrack]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=SpotifyMainWindow
Substitute="Spotify - ":""
; METERS


[MeterTitle]
Meter=String
####################################
Text=
####################################
FontColor=#Colour#
FontSize=#Size#
FontFace=#Font#

AntiAlias=1

[MeterTitle2]
Meter=String
MeasureName=mTrack
Text=%1
W=1500
H=#Height#
FontColor=255,255,255,100
FontSize=#Size#
FontFace=#Font#
StringStyle=BOLD
X=0
StringAlign=Left
AntiAlias=1
Hidden=0
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: Spofity Rainmeter skin help

Post by moshi »

this skin uses the WindowMessage plugin http://docs.rainmeter.net/manual-beta/plugins/windowmessage. in this case this means it displays the window title bar text of Spotify (one line). it is probably (i do not use Spotify) easy to split this text with RegExpSubstitute http://docs.rainmeter.net/manual-beta/measures/general-options/substitute#RegExpSubstitute, but i think it will be preferrable for you to use the NowPlaying plugin http://docs.rainmeter.net/manual-beta/plugins/nowplaying.
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: Spofity Rainmeter skin help

Post by moshi »

this will probably work for most:

Code: Select all

[mTrack]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=SpotifyMainWindow
Substitute="Spotify - ":""," - ":"#CRLF#"
will break with some titles probably.
Qluxzz
Posts: 8
Joined: February 2nd, 2013, 1:26 pm

Re: Spofity Rainmeter skin help

Post by Qluxzz »

moshi wrote:this skin uses the WindowMessage plugin http://docs.rainmeter.net/manual-beta/plugins/windowmessage. in this case this means it displays the window title bar text of Spotify (one line). it is probably (i do not use Spotify) easy to split this text with RegExpSubstitute http://docs.rainmeter.net/manual-beta/measures/general-options/substitute#RegExpSubstitute, but i think it will be preferrable for you to use the NowPlaying plugin http://docs.rainmeter.net/manual-beta/plugins/nowplaying.
Thanks, I downloaded a example skin and got it just as I wanted. :D