It is currently March 28th, 2024, 10:12 am

Spotify lyrics in rainmeter sidebar

Get help with creating, editing & fixing problems with skins
Post Reply
Dair
Posts: 2
Joined: June 5th, 2010, 9:24 am

Spotify lyrics in rainmeter sidebar

Post 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
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: Spotify lyrics in rainmeter sidebar

Post by dragonmage »

kenz0's LyricsGrabber could probably be modified to do it.
Dair
Posts: 2
Joined: June 5th, 2010, 9:24 am

Re: Spotify lyrics in rainmeter sidebar

Post by Dair »

How would one go about doing this?

Cheers :)
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: Spotify lyrics in rainmeter sidebar

Post by dragonmage »

I would ask kenz0, I've never looked at the skin myself so I couldn't say.
chrilloo
Posts: 1
Joined: March 18th, 2010, 9:04 am

Re: Spotify lyrics in rainmeter sidebar

Post 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.
Post Reply