Page 1 of 1

Spotify lyrics in rainmeter sidebar

Posted: June 5th, 2010, 9:30 am
by Dair
Hello, new to the forums, used the search feature but couldnt find anything so figured id ask. Is it possible to have rainmeter display the lyrics in the sidebar of the current song playing on spotify and if so, how? :)

thanks for any help you can give

Re: Spotify lyrics in rainmeter sidebar

Posted: June 5th, 2010, 12:59 pm
by dragonmage
kenz0's LyricsGrabber could probably be modified to do it.

Re: Spotify lyrics in rainmeter sidebar

Posted: June 5th, 2010, 5:35 pm
by Dair
How would one go about doing this?

Cheers :)

Re: Spotify lyrics in rainmeter sidebar

Posted: June 5th, 2010, 5:46 pm
by dragonmage
I would ask kenz0, I've never looked at the skin myself so I couldn't say.

Re: Spotify lyrics in rainmeter sidebar

Posted: June 15th, 2010, 2:00 pm
by chrilloo

Code: Select all

############################################################
;LyricsGrabber v0.1 for Winamp
############################################################
[Variables]
;~~Style~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	FONTSIZE1=8
	FONTSIZE2=10
	FONTFACE="Trebuchet MS"
	FONTCOLOR=FFFFFFD4
	BACKGROUND=00000001
	ANTIALIAS=1
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	@=LyricsGrabber
	SEARCH1=http://www.lyricsplugin.com/winamp03/plugin/?
	SEARCH2=http://www.google.com/search?
	!SW=!RainmeterShowMeter
	!HD=!RainmeterHideMeter
	!DS=!RainmeterDisableMeasure
	!EN=!RainmeterEnableMeasure
[Rainmeter]
	Author=Kenz0 (mail2kenz0@gmail.com)
	AppVersion=1001000
	BackgroundMode=2
	SolidColor=#BACKGROUND#
	BackgroundMargins=10,10,10,10
	DynamicWindowSize=1
	LeftMouseDownAction=!Execute ["#CURRENTPATH#misc\lyricsgrabber.vbs" "#SEARCH1#artist=[WINAMP2]" "#CURRENTPATH#misc\lyrics.html" 

"#PROGRAMPATH#Rainmeter.exe" "!Execute [#!EN# TITLE #@#][#!EN# NOTFOUND #@#]"]
	
[WINAMP1]
	Measure=Plugin
	Plugin=Plugins\WindowMessagePlugin.dll
	WindowClass=SpotifyMainWindow
	Substitute="Spotify - ":""," – ":"&title="," - Radio edit":"", " Radio edit":""," - Explicit Version":""
[TIME]
[WINAMP2]
	Measure=Plugin
	Plugin=Plugins\WindowMessagePlugin.dll
	WindowClass=SpotifyMainWindow
	Substitute="Spotify - ":""," – ":"&title="," - Radio edit":"", " Radio edit":""," - Explicit Version":""
[TIME]
	Measure=Plugin
	Plugin=Plugins\WindowMessagePlugin.dll
	WindowClass=Winamp v1.x
	WindowMessage=1024 0 105
[TRIGGER]
,	Measure=Plugin
;	Plugin=Plugins\WindowMessagePlugin.dll
;	WindowClass=SpotifyMainWindow
;	IfEqualValue=Spotify*
;	IfEqualAction=!Execute ["#CURRENTPATH#misc\lyricsgrabber.vbs" "#SEARCH1#artist=[WINAMP2]" "#CURRENTPATH#misc\lyrics.html" "#PROGRAMPATH#Rainmeter.exe" 

"!Execute [#!EN# TITLE #@#][#!EN# NOTFOUND #@#]"]
;	DynamicVariables=1
[TITLE]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	UpdateRate=1
;	ForceReload=1
	Url=file://#CURRENTPATH#misc\lyrics.html
	RegExp="(?siU)<div id=\"title\">\n(.*\n</div>)\n\n<div id=\"artist\">\n.*>(.*\n)</div>\n\n<div id=\"lyrics\">(\n.*)\n</div>"
	StringIndex=1
	Substitute="</div>":" by ","&":"&",""":""","%20" target="_blank">:"","</a>":""
	FinishAction=!Execute [#!DS# TITLE #@#][#!DS# NOTFOUND #@#][#!HD# (label) #@#][!RainmeterShow #@#][!RainmeterRedraw #@#]
	Disabled=1
[SINGER]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[TITLE]
	StringIndex=2
	Substitute="</a>":"","&":"&",""":"""
[LYRICS]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[TITLE]
	StringIndex=3
	Substitute="<br />":"","&":"&",""":""
[NOTFOUND]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	UpdateRate=1
;	ForceReload=1
	Url=file://#CURRENTPATH#misc\lyrics.html
	RegExp="(?si)<div id=\"lyrics\">\n\n(</div>)"
	StringIndex=1
	Substitute="</div>":" Not Found!  Click to search more..."
	Disabled=1
[(label)]
	Meter=String
	X=46
	Y=20
	FontSize=#FONTSIZE2#
	FontFace="#FONTFACE#"
	FontColor=#FONTCOLOR#
	StringEffect=SHADOW
	AntiAlias=#ANTIALIAS#
	Text="LyricsGrabber"
[(song)]
	Meter=String
	MeasureName=TITLE
	MeasureName2=SINGER
	X=46
	Y=12
	FontSize=#FONTSIZE2#
	FontFace="#FONTFACE#"
	FontColor=#FONTCOLOR#
	StringEffect=SHADOW
	AntiAlias=#ANTIALIAS#
	Text="%1%2"
[(lyrics)]
	Meter=String
	MeasureName=LYRICS
	X=10
	Y=32r
	FontSize=#FONTSIZE1#
	FontFace="#FONTFACE#"
	FontColor=#FONTCOLOR#
	StringEffect=SHADOW
	AntiAlias=#ANTIALIAS#
[(icon)]
	Meter=Image
	ImageName=misc\melody.png
	X=10
	Y=10
	LeftMouseUpAction=!RainmeterHide #@#
[(search)]
	Meter=String
	MeasureName=NOTFOUND
	X=10
	Y=56
	FontSize=#FONTSIZE2#
	FontFace="#FONTFACE#"
	FontColor=#FONTCOLOR#
	SolidColor=000000BB
	StringEffect=SHADOW
	AntiAlias=#ANTIALIAS#
	DynamicVariables=1
	LeftMouseDownAction=!Execute ["#SEARCH2#q=[WINAMP1]+lyrics"]   
would make it. Click on the note to refresh. I haven't been able to get it to refresh when the song changes, by itself.