It is currently May 21st, 2024, 7:37 am

Spotify Plugin Released! Now with less bugs!

Plugins and Addons popular with the Community
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5414
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Spotify Plugin Released! Now with less bugs!

Post by eclectic-tech »

You have duplicate sections for the [EstadoRepetir] measures; remove the one using NowPlaying.

Check the rest of your code for any duplicate section names.

Code: Select all

...

[mRating]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mReproductor]
PlayerType=RATING

[EstadoRepetir]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mReproductor]
PlayerType=REPEAT
Substitute="0":"repetir","1":"desrepetir","2":"repetir"
...
Please use 'Code' tags when posting, it makes it easier to help...
JoshuaVL1988
Posts: 37
Joined: April 25th, 2015, 10:41 am

Re: Spotify Plugin Released! Now with less bugs!

Post by JoshuaVL1988 »

@eclectic-tech

That failed as well. in fact, it caused the Shuffle and repeat buttons to gain a glow effect.

maybe i removed the wrong ones? here's the ini.

Code: Select all


[Rainmeter]
Update=50
ContextTitle="Opciones"
ContextAction=[!ActivateConfig "Evolucion\Opciones" "Opciones.ini"]

[Metadata]
Author=A.G.E
Name=Reproductor de Musica
Version=1.0
Information=Informacion de lo que estas escuchando

;-------------------------------
[Variables]
@include=#SKINSPATH#Evolucion\variables.inc
@include2=#@#Languages\#language#.inc

*\\\**************************///*
	    	 MEDIDORES
*\\\**************************///*

[mReproductor]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName="#NombreDelReproductor#"
PlayerType=Title
DisableLeadingZero=0
Substitute="":"#Pista No Encontrada#"

[EstadoReproducir]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=PLAYING
Substitute="0":"reproducir","1":"pausar","2":"reproducir"

[EstadoRepetir]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=REPEAT
Substitute="0":"repetir","1":"desrepetir","2":"repetir"

[EstadoDesordenar]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=SHUFFLE
Substitute="0":"mezclar","1":"desmezclar","2":"mezclar"

[mTrack]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Name=[mReproductor]
Type=TRACKNAME
Substitue=N/A

[mArtist]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=ARTISTNAME
Substitute="":"#Artista No Encontrado#"

[mAlbum]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=ALBUMNAME
Substitute="":"#Album No Encontrado#"

[mDuration]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=DURATION
Decimals=2
substitute="00":"0"

[mAlbumArt]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=ALBUMART
Substitute="":""

[mPosition]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=POSITION
Decimals=2
substitute="00":"0"

[mProgress]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Name=[mReproductor]
Type=PROGRESS
Decimals=2

[mRepeat]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=REPEAT

[mShuffle]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=SHUFFLE

[mBitrate]
Measure=Plugin
Plugin=WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 1 126
Substitute="":"","4294967295":"","2822":"282"

[mSamplerate]
Measure=Plugin
Plugin=WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 0 126
Substitute="":"","4294967295":"","2822":"282"

*\\\**************************///*
	    	 BASE
*\\\**************************///*

[FONDO]
Meter=Image
ImageName=marco

[FONDO barra]
Meter=Image
ImageName=marco2
Hidden=0
Group=2

[FONDOPYP]
Meter=Image
ImageName=fb
X=15
Y=33
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mReproductor PlayPause"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]
Hidden=0
Group=2

[MARCO BOTON]
Meter=Bar
SolidColor=0,0,0,1
X=145
Y=25
H=66
W=215
MouseScrollDownAction=!Execute [!RainmeterPluginBang "mReproductor Next"]
MouseScrollUpAction=!Execute [!RainmeterPluginBang "mReproductor Previous"]

*\\\**************************///*
	    	ESTRELLAS
*\\\**************************///*

[EstrellasMarcacacion]
Meter=Bitmap
MeasureName=mRating
BitmapImage=estrellas
BitmapFrames=6
BitmapExtend=1
X=100
Y=20
Group=1
Hidden=0
DynamicVariables=1

[Poner1Estrella]
Meter=Image
X=2r
Y=2r
W=8
H=8
SolidColor=0,0,0,1
LeftMouseDownAction=[!RainmeterPluginBang "mReproductor SetRating 1"]

[Poner2Estrellas]
Meter=Image
X=13r
Y=r
W=8
H=8
SolidColor=0,0,0,1
LeftMouseDownAction=[!RainmeterPluginBang "mReproductor SetRating 2"]

[Poner3Estrellas]
Meter=Image
X=13r
Y=r
W=8
H=8
SolidColor=0,0,0,1
LeftMouseDownAction=[!RainmeterPluginBang "mReproductor SetRating 3"]

[Poner4Estrellas]
Meter=Image
X=13r
Y=r
W=8
H=8
SolidColor=0,0,0,1
LeftMouseDownAction=[!RainmeterPluginBang "mReproductor SetRating 4"]

[Poner5Estrellas]
Meter=Image
X=13r
Y=r
W=8
H=8
SolidColor=0,0,0,1
LeftMouseDownAction=[!RainmeterPluginBang "mReproductor SetRating 5"]

*\\\**************************///*
	    	 TEXTOS
*\\\**************************///*

[KBPS]
MeasureName=mBitrate
Meter=STRING
Solid
X=30
Y=21
W=188
H=10
ClipString=1
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=7
Antialias=2
StringStyle=NORMAL
StringAlign=Left
Text=%1Kbps
Hidden=0
Group=1

[TIEMPORESTANTE]
MeasureName=mPosition
Meter=STRING
X=203r
Y=r
W=188
H=10
ClipString=1
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=7
Antialias=2
StringStyle=NORMAL
StringAlign=Right
Text=">> %1"
Hidden=0
Group=1

[TITULO]
MeasureName=mTrack
Meter=STRING
X=131
Y=2R
W=205
H=22
ClipString=1
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=7
Antialias=2
StringStyle=NORMAL
StringAlign=Center
Text=> %1
AutoScale=1
Hidden=0
Group=1

[ARTISTA]
MeasureName=mArtist
Meter=STRING
X=r
Y=20r
W=205
H=10
ClipString=1
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=7
Antialias=2
StringStyle=NORMAL
StringAlign=Center
Text=> %1
AutoScale=1
Hidden=0
Group=1

***************************

[TEXTO CIRCULO 1]
Meter=String
X=58
Y=42
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=7
Antialias=2
StringStyle=NORMAL
StringAlign=Center
Text=> >
Hidden=1

[PorcentajeUsado]
MeasureName=mPosition
Meter=STRING
X=r
Y=R
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=9
Antialias=2
StringStyle=NORMAL
StringAlign=Center
Text=%1
Percentual=1
AutoScale=1
Hidden=1

*///**********GRAFICOS************///*

[Barra de Progreso Usado]
Meter=Bar
MeasureName=mProgress
BarImage=progreso
BarOrientation=Horizontal
X=29
Y=67
H=11
W=205
Hidden=0
Group=1
LeftMouseUpAction=[!CommandMeasure "mProgress" "SetPosition $MouseX:%$"]
*\\\**************************///*
	    	 BOTONES
*\\\**************************///*

[FLECHACAMBIO]
Meter=Button
ButtonImage=flecha1
X=-1
Y=32
LeftMouseDownAction=[!ToggleMeterGroup 2][!ToggleMeterGroup 1][!HideMeterGroup 3][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\1.wav"]

[FLECHACAMBIO2]
Meter=Button
ButtonImage=flecha2
X=233R
Y=r
LeftMouseDownAction=[!ToggleMeterGroup 2][!ToggleMeterGroup 1][!HideMeterGroup 3][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\1.wav"]


[BOTONANTERIOR]
Meter=Button
ButtonImage=anterior
ImageTint=#TintColor#
X=30
Y=22
Group=2
Hidden=1
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mReproductor Previous"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]

[Reproducir]
Meter=Button
ButtonImage=[EstadoReproducir]
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mReproductor PlayPause"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]
DynamicVariables=1

[BOTONSTOP]
Meter=Button
ButtonImage=parar
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mReproductor Stop"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]

[BOTONSIGUIENTE]
Meter=Button
ButtonImage=siguiente
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mReproductor Next"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]

[BOTONABRIRREPRODUCTOR]
Meter=Button
ButtonImage=abrir
ImageTint=#TintColor#
X=30
Y=2R
Group=2
Hidden=1
LeftMouseDownAction=["#ReproductorPath#"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]

[BOTONAREPETIR]
Meter=Button
ButtonImage=[EstadoRepetir]
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseDownAction=[!CommandMeasure "mReproductor" "SetRepeat -1"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]
DynamicVariables=1

[BOTONAMEZCLAR]
Meter=Button
ButtonImage=[EstadoDesordenar]
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseDownAction=[!CommandMeasure "mReproductor" "SetShuffle -1"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]
DynamicVariables=1

[BOTONCERRAREPRODUCTOR]
Meter=Button
ButtonImage=apagar
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseUpAction=[!RainmeterPluginBang "mReproductor ClosePlayer"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]

User avatar
eclectic-tech
Rainmeter Sage
Posts: 5414
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Spotify Plugin Released! Now with less bugs!

Post by eclectic-tech »

Let me start by saying I do not use Spotify, so I cannot test your skin, but I can correct errors that are in the log...

I changed the skin update to the default 1000ms (no need for 50ms speed)
You did not have a [mRating] measure (I added one)
I corrected three NowPlaying measures 'Type=' changed to 'PlayerType=' and changed 'PlayerName=SPOTIFY'
I modified the [EstadoReproducir] measure to use NowPlaying.dll (SpotifyPlugin.dll does not support PlayPause, Stop, etc.)
Your [MARCO BOTON] bar meter did not have a MeasureName, I added 'MeasureName=mProgress'
I removed all '!Execute' these are no longer needed in Rainmeter
'!RainmeterPluginBang' has been depreciated and should be replaced with !CommandMeasure, but that also means modifying the arguments of the bang, so I did not change any of those...

These actions eliminated all errors except for 'unable to load images' because I do not have them.

As I said, I cannot test on Spotify, but this should get you closer to a working skin.
Perhaps another user with Spotify access can help further...

Here is your modified code:

Code: Select all

[Rainmeter]
Update=1000
ContextTitle="Opciones"
ContextAction=[!ActivateConfig "Evolucion\Opciones" "Opciones.ini"]

[Metadata]
Author=A.G.E
Name=Reproductor de Musica
Version=1.0
Information=Informacion de lo que estas escuchando

;-------------------------------
[Variables]
@include=#SKINSPATH#Evolucion\variables.inc
@include2=#@#Languages\#language#.inc

*\\\**************************///*
           MEDIDORES
*\\\**************************///*

[mReproductor]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#NombreDelReproductor#
PlayerType=Title
DisableLeadingZero=0
Substitute="":"#Pista No Encontrada#"

[EstadoReproducir]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=SPOTIFY
PlayerType=STATE
Substitute="0":"reproducir","1":"pausar","2":"reproducir"

[EstadoRepetir]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=REPEAT
Substitute="0":"repetir","1":"desrepetir","2":"repetir"

[EstadoDesordenar]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=SHUFFLE
Substitute="0":"mezclar","1":"desmezclar","2":"mezclar"

[mTrack]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Name=[mReproductor]
Type=TRACKNAME
Substitue=N/A

[mArtist]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=ARTISTNAME
Substitute="":"#Artista No Encontrado#"

[mAlbum]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=ALBUMNAME
Substitute="":"#Album No Encontrado#"

[mDuration]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=SPOTIFY
PlayerType=DURATION
Decimals=2
substitute="00":"0"

[mAlbumArt]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=ALBUMART
Substitute="":""

[mPosition]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=POSITION
Decimals=2
substitute="00":"0"

[mProgress]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Name=[mReproductor]
Type=PROGRESS
Decimals=2

[mRepeat]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=SPOTIFY
PlayerType=REPEAT

[mShuffle]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=SHUFFLE

[mBitrate]
Measure=Plugin
Plugin=WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 1 126
Substitute="":"","4294967295":"","2822":"282"

[mSamplerate]
Measure=Plugin
Plugin=WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 0 126
Substitute="":"","4294967295":"","2822":"282"

[mRating]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=SPOTIFY
PlayerType=RATING

*\\\**************************///*
           BASE
*\\\**************************///*

[FONDO]
Meter=Image
ImageName=marco

[FONDO barra]
Meter=Image
ImageName=marco2
Hidden=0
Group=2

[FONDOPYP]
Meter=Image
ImageName=fb
X=15
Y=33
LeftMouseUpAction=[!RainmeterPluginBang "mReproductor PlayPause"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]
Hidden=0
Group=2

[MARCO BOTON]
Meter=Bar
MeasureName=mProgress
SolidColor=0,0,0,1
X=145
Y=25
H=66
W=215
MouseScrollDownAction=[!RainmeterPluginBang "mReproductor Next"]
MouseScrollUpAction=[!RainmeterPluginBang "mReproductor Previous"]

*\\\**************************///*
          ESTRELLAS
*\\\**************************///*

[EstrellasMarcacacion]
Meter=Bitmap
MeasureName=mRating
BitmapImage=estrellas
BitmapFrames=6
BitmapExtend=1
X=100
Y=20
Group=1
Hidden=0
DynamicVariables=1

[Poner1Estrella]
Meter=Image
X=2r
Y=2r
W=8
H=8
SolidColor=0,0,0,1
LeftMouseDownAction=[!RainmeterPluginBang "mReproductor SetRating 1"]

[Poner2Estrellas]
Meter=Image
X=13r
Y=r
W=8
H=8
SolidColor=0,0,0,1
LeftMouseDownAction=[!RainmeterPluginBang "mReproductor SetRating 2"]

[Poner3Estrellas]
Meter=Image
X=13r
Y=r
W=8
H=8
SolidColor=0,0,0,1
LeftMouseDownAction=[!RainmeterPluginBang "mReproductor SetRating 3"]

[Poner4Estrellas]
Meter=Image
X=13r
Y=r
W=8
H=8
SolidColor=0,0,0,1
LeftMouseDownAction=[!RainmeterPluginBang "mReproductor SetRating 4"]

[Poner5Estrellas]
Meter=Image
X=13r
Y=r
W=8
H=8
SolidColor=0,0,0,1
LeftMouseDownAction=[!RainmeterPluginBang "mReproductor SetRating 5"]

*\\\**************************///*
           TEXTOS
*\\\**************************///*

[KBPS]
MeasureName=mBitrate
Meter=STRING
Solid
X=30
Y=21
W=188
H=10
ClipString=1
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=7
Antialias=2
StringStyle=NORMAL
StringAlign=Left
Text=%1Kbps
Hidden=0
Group=1

[TIEMPORESTANTE]
MeasureName=mPosition
Meter=STRING
X=203r
Y=r
W=188
H=10
ClipString=1
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=7
Antialias=2
StringStyle=NORMAL
StringAlign=Right
Text=">> %1"
Hidden=0
Group=1

[TITULO]
MeasureName=mTrack
Meter=STRING
X=131
Y=2R
W=205
H=22
ClipString=1
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=7
Antialias=2
StringStyle=NORMAL
StringAlign=Center
Text=> %1
AutoScale=1
Hidden=0
Group=1

[ARTISTA]
MeasureName=mArtist
Meter=STRING
X=r
Y=20r
W=205
H=10
ClipString=1
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=7
Antialias=2
StringStyle=NORMAL
StringAlign=Center
Text=> %1
AutoScale=1
Hidden=0
Group=1

***************************

[TEXTO CIRCULO 1]
Meter=String
X=58
Y=42
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=7
Antialias=2
StringStyle=NORMAL
StringAlign=Center
Text=> >
Hidden=1

[PorcentajeUsado]
MeasureName=mPosition
Meter=STRING
X=r
Y=R
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=9
Antialias=2
StringStyle=NORMAL
StringAlign=Center
Text=%1
Percentual=1
AutoScale=1
Hidden=1

*///**********GRAFICOS************///*

[Barra de Progreso Usado]
Meter=Bar
MeasureName=mProgress
BarImage=progreso
BarOrientation=Horizontal
X=29
Y=67
H=11
W=205
Hidden=0
Group=1
LeftMouseUpAction=[!CommandMeasure "mProgress" "SetPosition $MouseX:%$"]
*\\\**************************///*
           BOTONES
*\\\**************************///*

[FLECHACAMBIO]
Meter=Button
ButtonImage=flecha1
X=-1
Y=32
LeftMouseDownAction=[!ToggleMeterGroup 2][!ToggleMeterGroup 1][!HideMeterGroup 3][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\1.wav"]

[FLECHACAMBIO2]
Meter=Button
ButtonImage=flecha2
X=233R
Y=r
LeftMouseDownAction=[!ToggleMeterGroup 2][!ToggleMeterGroup 1][!HideMeterGroup 3][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\1.wav"]


[BOTONANTERIOR]
Meter=Button
ButtonImage=anterior
ImageTint=#TintColor#
X=30
Y=22
Group=2
Hidden=1
LeftMouseUpAction=[!RainmeterPluginBang "mReproductor Previous"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]

[Reproducir]
Meter=Button
ButtonImage=[EstadoReproducir]
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseUpAction=[!RainmeterPluginBang "mReproductor PlayPause"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]
DynamicVariables=1

[BOTONSTOP]
Meter=Button
ButtonImage=parar
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseUpAction=[!RainmeterPluginBang "mReproductor Stop"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]

[BOTONSIGUIENTE]
Meter=Button
ButtonImage=siguiente
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseUpAction=[!RainmeterPluginBang "mReproductor Next"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]

[BOTONABRIRREPRODUCTOR]
Meter=Button
ButtonImage=abrir
ImageTint=#TintColor#
X=30
Y=2R
Group=2
Hidden=1
LeftMouseDownAction=["#ReproductorPath#"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]

[BOTONAREPETIR]
Meter=Button
ButtonImage=[EstadoRepetir]
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseDownAction=[!CommandMeasure "mReproductor" "SetRepeat -1"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]
DynamicVariables=1

[BOTONAMEZCLAR]
Meter=Button
ButtonImage=[EstadoDesordenar]
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseDownAction=[!CommandMeasure "mReproductor" "SetShuffle -1"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]
DynamicVariables=1

[BOTONCERRAREPRODUCTOR]
Meter=Button
ButtonImage=apagar
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseUpAction=[!RainmeterPluginBang "mReproductor ClosePlayer"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]
JoshuaVL1988
Posts: 37
Joined: April 25th, 2015, 10:41 am

Re: Spotify Plugin Released! Now with less bugs!

Post by JoshuaVL1988 »

eclectic-tech wrote:Let me start by saying I do not use Spotify, so I cannot test your skin, but I can correct errors that are in the log...

I changed the skin update to the default 1000ms (no need for 50ms speed)
You did not have a [mRating] measure (I added one)
I corrected three NowPlaying measures 'Type=' changed to 'PlayerType=' and changed 'PlayerName=SPOTIFY'
I modified the [EstadoReproducir] measure to use NowPlaying.dll (SpotifyPlugin.dll does not support PlayPause, Stop, etc.)
Your [MARCO BOTON] bar meter did not have a MeasureName, I added 'MeasureName=mProgress'
I removed all '!Execute' these are no longer needed in Rainmeter
'!RainmeterPluginBang' has been depreciated and should be replaced with !CommandMeasure, but that also means modifying the arguments of the bang, so I did not change any of those...

These actions eliminated all errors except for 'unable to load images' because I do not have them.

As I said, I cannot test on Spotify, but this should get you closer to a working skin.
Perhaps another user with Spotify access can help further...

Here is your modified code:

Code: Select all

[Rainmeter]
Update=1000
ContextTitle="Opciones"
ContextAction=[!ActivateConfig "Evolucion\Opciones" "Opciones.ini"]

[Metadata]
Author=A.G.E
Name=Reproductor de Musica
Version=1.0
Information=Informacion de lo que estas escuchando

;-------------------------------
[Variables]
@include=#SKINSPATH#Evolucion\variables.inc
@include2=#@#Languages\#language#.inc

*\\\**************************///*
           MEDIDORES
*\\\**************************///*

[mReproductor]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#NombreDelReproductor#
PlayerType=Title
DisableLeadingZero=0
Substitute="":"#Pista No Encontrada#"

[EstadoReproducir]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=SPOTIFY
PlayerType=STATE
Substitute="0":"reproducir","1":"pausar","2":"reproducir"

[EstadoRepetir]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=REPEAT
Substitute="0":"repetir","1":"desrepetir","2":"repetir"

[EstadoDesordenar]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=SHUFFLE
Substitute="0":"mezclar","1":"desmezclar","2":"mezclar"

[mTrack]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Name=[mReproductor]
Type=TRACKNAME
Substitue=N/A

[mArtist]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=ARTISTNAME
Substitute="":"#Artista No Encontrado#"

[mAlbum]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=ALBUMNAME
Substitute="":"#Album No Encontrado#"

[mDuration]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=SPOTIFY
PlayerType=DURATION
Decimals=2
substitute="00":"0"

[mAlbumArt]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=ALBUMART
Substitute="":""

[mPosition]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=POSITION
Decimals=2
substitute="00":"0"

[mProgress]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Name=[mReproductor]
Type=PROGRESS
Decimals=2

[mRepeat]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=SPOTIFY
PlayerType=REPEAT

[mShuffle]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=SHUFFLE

[mBitrate]
Measure=Plugin
Plugin=WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 1 126
Substitute="":"","4294967295":"","2822":"282"

[mSamplerate]
Measure=Plugin
Plugin=WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 0 126
Substitute="":"","4294967295":"","2822":"282"

[mRating]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=SPOTIFY
PlayerType=RATING

*\\\**************************///*
           BASE
*\\\**************************///*

[FONDO]
Meter=Image
ImageName=marco

[FONDO barra]
Meter=Image
ImageName=marco2
Hidden=0
Group=2

[FONDOPYP]
Meter=Image
ImageName=fb
X=15
Y=33
LeftMouseUpAction=[!RainmeterPluginBang "mReproductor PlayPause"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]
Hidden=0
Group=2

[MARCO BOTON]
Meter=Bar
MeasureName=mProgress
SolidColor=0,0,0,1
X=145
Y=25
H=66
W=215
MouseScrollDownAction=[!RainmeterPluginBang "mReproductor Next"]
MouseScrollUpAction=[!RainmeterPluginBang "mReproductor Previous"]

*\\\**************************///*
          ESTRELLAS
*\\\**************************///*

[EstrellasMarcacacion]
Meter=Bitmap
MeasureName=mRating
BitmapImage=estrellas
BitmapFrames=6
BitmapExtend=1
X=100
Y=20
Group=1
Hidden=0
DynamicVariables=1

[Poner1Estrella]
Meter=Image
X=2r
Y=2r
W=8
H=8
SolidColor=0,0,0,1
LeftMouseDownAction=[!RainmeterPluginBang "mReproductor SetRating 1"]

[Poner2Estrellas]
Meter=Image
X=13r
Y=r
W=8
H=8
SolidColor=0,0,0,1
LeftMouseDownAction=[!RainmeterPluginBang "mReproductor SetRating 2"]

[Poner3Estrellas]
Meter=Image
X=13r
Y=r
W=8
H=8
SolidColor=0,0,0,1
LeftMouseDownAction=[!RainmeterPluginBang "mReproductor SetRating 3"]

[Poner4Estrellas]
Meter=Image
X=13r
Y=r
W=8
H=8
SolidColor=0,0,0,1
LeftMouseDownAction=[!RainmeterPluginBang "mReproductor SetRating 4"]

[Poner5Estrellas]
Meter=Image
X=13r
Y=r
W=8
H=8
SolidColor=0,0,0,1
LeftMouseDownAction=[!RainmeterPluginBang "mReproductor SetRating 5"]

*\\\**************************///*
           TEXTOS
*\\\**************************///*

[KBPS]
MeasureName=mBitrate
Meter=STRING
Solid
X=30
Y=21
W=188
H=10
ClipString=1
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=7
Antialias=2
StringStyle=NORMAL
StringAlign=Left
Text=%1Kbps
Hidden=0
Group=1

[TIEMPORESTANTE]
MeasureName=mPosition
Meter=STRING
X=203r
Y=r
W=188
H=10
ClipString=1
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=7
Antialias=2
StringStyle=NORMAL
StringAlign=Right
Text=">> %1"
Hidden=0
Group=1

[TITULO]
MeasureName=mTrack
Meter=STRING
X=131
Y=2R
W=205
H=22
ClipString=1
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=7
Antialias=2
StringStyle=NORMAL
StringAlign=Center
Text=> %1
AutoScale=1
Hidden=0
Group=1

[ARTISTA]
MeasureName=mArtist
Meter=STRING
X=r
Y=20r
W=205
H=10
ClipString=1
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=7
Antialias=2
StringStyle=NORMAL
StringAlign=Center
Text=> %1
AutoScale=1
Hidden=0
Group=1

***************************

[TEXTO CIRCULO 1]
Meter=String
X=58
Y=42
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=7
Antialias=2
StringStyle=NORMAL
StringAlign=Center
Text=> >
Hidden=1

[PorcentajeUsado]
MeasureName=mPosition
Meter=STRING
X=r
Y=R
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=9
Antialias=2
StringStyle=NORMAL
StringAlign=Center
Text=%1
Percentual=1
AutoScale=1
Hidden=1

*///**********GRAFICOS************///*

[Barra de Progreso Usado]
Meter=Bar
MeasureName=mProgress
BarImage=progreso
BarOrientation=Horizontal
X=29
Y=67
H=11
W=205
Hidden=0
Group=1
LeftMouseUpAction=[!CommandMeasure "mProgress" "SetPosition $MouseX:%$"]
*\\\**************************///*
           BOTONES
*\\\**************************///*

[FLECHACAMBIO]
Meter=Button
ButtonImage=flecha1
X=-1
Y=32
LeftMouseDownAction=[!ToggleMeterGroup 2][!ToggleMeterGroup 1][!HideMeterGroup 3][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\1.wav"]

[FLECHACAMBIO2]
Meter=Button
ButtonImage=flecha2
X=233R
Y=r
LeftMouseDownAction=[!ToggleMeterGroup 2][!ToggleMeterGroup 1][!HideMeterGroup 3][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\1.wav"]


[BOTONANTERIOR]
Meter=Button
ButtonImage=anterior
ImageTint=#TintColor#
X=30
Y=22
Group=2
Hidden=1
LeftMouseUpAction=[!RainmeterPluginBang "mReproductor Previous"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]

[Reproducir]
Meter=Button
ButtonImage=[EstadoReproducir]
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseUpAction=[!RainmeterPluginBang "mReproductor PlayPause"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]
DynamicVariables=1

[BOTONSTOP]
Meter=Button
ButtonImage=parar
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseUpAction=[!RainmeterPluginBang "mReproductor Stop"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]

[BOTONSIGUIENTE]
Meter=Button
ButtonImage=siguiente
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseUpAction=[!RainmeterPluginBang "mReproductor Next"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]

[BOTONABRIRREPRODUCTOR]
Meter=Button
ButtonImage=abrir
ImageTint=#TintColor#
X=30
Y=2R
Group=2
Hidden=1
LeftMouseDownAction=["#ReproductorPath#"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]

[BOTONAREPETIR]
Meter=Button
ButtonImage=[EstadoRepetir]
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseDownAction=[!CommandMeasure "mReproductor" "SetRepeat -1"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]
DynamicVariables=1

[BOTONAMEZCLAR]
Meter=Button
ButtonImage=[EstadoDesordenar]
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseDownAction=[!CommandMeasure "mReproductor" "SetShuffle -1"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]
DynamicVariables=1

[BOTONCERRAREPRODUCTOR]
Meter=Button
ButtonImage=apagar
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseUpAction=[!RainmeterPluginBang "mReproductor ClosePlayer"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]
I've actually learned from experience that the play/pause buttons don't change when pressed if using the NowPlaying plugin instead of the SpotifyPlugin. But I'll give this one a go to see if it's possible the scripting may have caused the issues. Thanks. :D
JoshuaVL1988
Posts: 37
Joined: April 25th, 2015, 10:41 am

Re: Spotify Plugin Released! Now with less bugs!

Post by JoshuaVL1988 »

eclectic-tech wrote:Let me start by saying I do not use Spotify, so I cannot test your skin, but I can correct errors that are in the log...

I changed the skin update to the default 1000ms (no need for 50ms speed)
You did not have a [mRating] measure (I added one)
I corrected three NowPlaying measures 'Type=' changed to 'PlayerType=' and changed 'PlayerName=SPOTIFY'
I modified the [EstadoReproducir] measure to use NowPlaying.dll (SpotifyPlugin.dll does not support PlayPause, Stop, etc.)
Your [MARCO BOTON] bar meter did not have a MeasureName, I added 'MeasureName=mProgress'
I removed all '!Execute' these are no longer needed in Rainmeter
'!RainmeterPluginBang' has been depreciated and should be replaced with !CommandMeasure, but that also means modifying the arguments of the bang, so I did not change any of those...

These actions eliminated all errors except for 'unable to load images' because I do not have them.

As I said, I cannot test on Spotify, but this should get you closer to a working skin.
Perhaps another user with Spotify access can help further...

Here is your modified code:

Code: Select all

[Rainmeter]
Update=1000
ContextTitle="Opciones"
ContextAction=[!ActivateConfig "Evolucion\Opciones" "Opciones.ini"]

[Metadata]
Author=A.G.E
Name=Reproductor de Musica
Version=1.0
Information=Informacion de lo que estas escuchando

;-------------------------------
[Variables]
@include=#SKINSPATH#Evolucion\variables.inc
@include2=#@#Languages\#language#.inc

*\\\**************************///*
           MEDIDORES
*\\\**************************///*

[mReproductor]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#NombreDelReproductor#
PlayerType=Title
DisableLeadingZero=0
Substitute="":"#Pista No Encontrada#"

[EstadoReproducir]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=SPOTIFY
PlayerType=STATE
Substitute="0":"reproducir","1":"pausar","2":"reproducir"

[EstadoRepetir]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=REPEAT
Substitute="0":"repetir","1":"desrepetir","2":"repetir"

[EstadoDesordenar]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=SHUFFLE
Substitute="0":"mezclar","1":"desmezclar","2":"mezclar"

[mTrack]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Name=[mReproductor]
Type=TRACKNAME
Substitue=N/A

[mArtist]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=ARTISTNAME
Substitute="":"#Artista No Encontrado#"

[mAlbum]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=ALBUMNAME
Substitute="":"#Album No Encontrado#"

[mDuration]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=SPOTIFY
PlayerType=DURATION
Decimals=2
substitute="00":"0"

[mAlbumArt]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=ALBUMART
Substitute="":""

[mPosition]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=POSITION
Decimals=2
substitute="00":"0"

[mProgress]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Name=[mReproductor]
Type=PROGRESS
Decimals=2

[mRepeat]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=SPOTIFY
PlayerType=REPEAT

[mShuffle]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[mReproductor]
Type=SHUFFLE

[mBitrate]
Measure=Plugin
Plugin=WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 1 126
Substitute="":"","4294967295":"","2822":"282"

[mSamplerate]
Measure=Plugin
Plugin=WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 0 126
Substitute="":"","4294967295":"","2822":"282"

[mRating]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=SPOTIFY
PlayerType=RATING

*\\\**************************///*
           BASE
*\\\**************************///*

[FONDO]
Meter=Image
ImageName=marco

[FONDO barra]
Meter=Image
ImageName=marco2
Hidden=0
Group=2

[FONDOPYP]
Meter=Image
ImageName=fb
X=15
Y=33
LeftMouseUpAction=[!RainmeterPluginBang "mReproductor PlayPause"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]
Hidden=0
Group=2

[MARCO BOTON]
Meter=Bar
MeasureName=mProgress
SolidColor=0,0,0,1
X=145
Y=25
H=66
W=215
MouseScrollDownAction=[!RainmeterPluginBang "mReproductor Next"]
MouseScrollUpAction=[!RainmeterPluginBang "mReproductor Previous"]

*\\\**************************///*
          ESTRELLAS
*\\\**************************///*

[EstrellasMarcacacion]
Meter=Bitmap
MeasureName=mRating
BitmapImage=estrellas
BitmapFrames=6
BitmapExtend=1
X=100
Y=20
Group=1
Hidden=0
DynamicVariables=1

[Poner1Estrella]
Meter=Image
X=2r
Y=2r
W=8
H=8
SolidColor=0,0,0,1
LeftMouseDownAction=[!RainmeterPluginBang "mReproductor SetRating 1"]

[Poner2Estrellas]
Meter=Image
X=13r
Y=r
W=8
H=8
SolidColor=0,0,0,1
LeftMouseDownAction=[!RainmeterPluginBang "mReproductor SetRating 2"]

[Poner3Estrellas]
Meter=Image
X=13r
Y=r
W=8
H=8
SolidColor=0,0,0,1
LeftMouseDownAction=[!RainmeterPluginBang "mReproductor SetRating 3"]

[Poner4Estrellas]
Meter=Image
X=13r
Y=r
W=8
H=8
SolidColor=0,0,0,1
LeftMouseDownAction=[!RainmeterPluginBang "mReproductor SetRating 4"]

[Poner5Estrellas]
Meter=Image
X=13r
Y=r
W=8
H=8
SolidColor=0,0,0,1
LeftMouseDownAction=[!RainmeterPluginBang "mReproductor SetRating 5"]

*\\\**************************///*
           TEXTOS
*\\\**************************///*

[KBPS]
MeasureName=mBitrate
Meter=STRING
Solid
X=30
Y=21
W=188
H=10
ClipString=1
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=7
Antialias=2
StringStyle=NORMAL
StringAlign=Left
Text=%1Kbps
Hidden=0
Group=1

[TIEMPORESTANTE]
MeasureName=mPosition
Meter=STRING
X=203r
Y=r
W=188
H=10
ClipString=1
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=7
Antialias=2
StringStyle=NORMAL
StringAlign=Right
Text=">> %1"
Hidden=0
Group=1

[TITULO]
MeasureName=mTrack
Meter=STRING
X=131
Y=2R
W=205
H=22
ClipString=1
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=7
Antialias=2
StringStyle=NORMAL
StringAlign=Center
Text=> %1
AutoScale=1
Hidden=0
Group=1

[ARTISTA]
MeasureName=mArtist
Meter=STRING
X=r
Y=20r
W=205
H=10
ClipString=1
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=7
Antialias=2
StringStyle=NORMAL
StringAlign=Center
Text=> %1
AutoScale=1
Hidden=0
Group=1

***************************

[TEXTO CIRCULO 1]
Meter=String
X=58
Y=42
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=7
Antialias=2
StringStyle=NORMAL
StringAlign=Center
Text=> >
Hidden=1

[PorcentajeUsado]
MeasureName=mPosition
Meter=STRING
X=r
Y=R
FontFace=#FontName1#
FontColor=#FontColor.Text#
FontSize=9
Antialias=2
StringStyle=NORMAL
StringAlign=Center
Text=%1
Percentual=1
AutoScale=1
Hidden=1

*///**********GRAFICOS************///*

[Barra de Progreso Usado]
Meter=Bar
MeasureName=mProgress
BarImage=progreso
BarOrientation=Horizontal
X=29
Y=67
H=11
W=205
Hidden=0
Group=1
LeftMouseUpAction=[!CommandMeasure "mProgress" "SetPosition $MouseX:%$"]
*\\\**************************///*
           BOTONES
*\\\**************************///*

[FLECHACAMBIO]
Meter=Button
ButtonImage=flecha1
X=-1
Y=32
LeftMouseDownAction=[!ToggleMeterGroup 2][!ToggleMeterGroup 1][!HideMeterGroup 3][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\1.wav"]

[FLECHACAMBIO2]
Meter=Button
ButtonImage=flecha2
X=233R
Y=r
LeftMouseDownAction=[!ToggleMeterGroup 2][!ToggleMeterGroup 1][!HideMeterGroup 3][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\1.wav"]


[BOTONANTERIOR]
Meter=Button
ButtonImage=anterior
ImageTint=#TintColor#
X=30
Y=22
Group=2
Hidden=1
LeftMouseUpAction=[!RainmeterPluginBang "mReproductor Previous"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]

[Reproducir]
Meter=Button
ButtonImage=[EstadoReproducir]
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseUpAction=[!RainmeterPluginBang "mReproductor PlayPause"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]
DynamicVariables=1

[BOTONSTOP]
Meter=Button
ButtonImage=parar
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseUpAction=[!RainmeterPluginBang "mReproductor Stop"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]

[BOTONSIGUIENTE]
Meter=Button
ButtonImage=siguiente
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseUpAction=[!RainmeterPluginBang "mReproductor Next"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]

[BOTONABRIRREPRODUCTOR]
Meter=Button
ButtonImage=abrir
ImageTint=#TintColor#
X=30
Y=2R
Group=2
Hidden=1
LeftMouseDownAction=["#ReproductorPath#"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]

[BOTONAREPETIR]
Meter=Button
ButtonImage=[EstadoRepetir]
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseDownAction=[!CommandMeasure "mReproductor" "SetRepeat -1"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]
DynamicVariables=1

[BOTONAMEZCLAR]
Meter=Button
ButtonImage=[EstadoDesordenar]
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseDownAction=[!CommandMeasure "mReproductor" "SetShuffle -1"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]
DynamicVariables=1

[BOTONCERRAREPRODUCTOR]
Meter=Button
ButtonImage=apagar
ImageTint=#TintColor#
X=5R
Y=r
Group=2
Hidden=1
LeftMouseUpAction=[!RainmeterPluginBang "mReproductor ClosePlayer"][PLAY "%USERPROFILE%\Documents\Rainmeter\Skins\Evolucion\Sonidos\2.wav"][!Update]
yup, that failed. Most of the skin was blocked out by a massive green rectangle in this edit. Play/Pause button doesn't switch due to the NowPlaying.dll, and again Shuffle and Repeat still don't work in with this .ini. Luckily I backed up the one I had mostly working, lol.

Also, @.raptor I do however know that there are no "measure" areas anywhere in it for the Repeat and Shuffle buttons, however I don't know where to put those because I've tried putting them into the commands (or whatever they're called) at the bottom and it didn't do anything. Maybe I'm neding the proper command measures for them in some other area? The bottom parts are apparently just the reference for the button images and the placement of those button images. Perhaps I'm needing actual command measures somehere? I remember having to add the mTrack measures and commands to make it work with Spotify as well, but I've never dealt with Shuffle and Repeat commands, so I don't know what to put in for those.
User avatar
.raptor
Posts: 220
Joined: April 3rd, 2013, 11:03 pm
Location: Norway

Re: Spotify Plugin Released! Now with less bugs!

Post by .raptor »

If you want any help you should try to translate your skin to english (the code, not the user printed strings). I can help you afterwards, but you should be able to do this on your own. As i have none of the related files (variables, images), and dont speak spanish, i dont even know where to begin.

If you need more help, translate the skin, and post it as an archive with the images and variables files attached.
king0demons
Posts: 4
Joined: December 20th, 2015, 5:44 pm

Re: Spotify Plugin Released! Now with less bugs!

Post by king0demons »

**EDIT**
Issue was resolved, somehow the plugin itself was deleted.. All works now, Feel free to use the plugin though.

**EDIT END**

After the update I get errors through the roof in the logs.

This is what I have, (This is a crude conversion of an itunes plugin.)

Code: Select all

------------------------------------------
[Rainmeter]
Author=urielHDS
;Conversion to SpotifyPlugin by .raptor completed by king0demons

;Metadata added by RainBrowser
;http://rainmeter.net/RainWiki/index.php?title=Rainmeter_101#.5BMetadata.5D
Update=100

[Metadata]
Name=
Config=
Description=
Instructions=
Version=
Tags=
License=
Variant=
Preview=

;End of added Metadata

[Variables]
color=255,255,255, 180
color2=0, 0, 0, 200
graph.line=255,255,255, 180
graph.line2=0, 0, 0, 180
font=Tahoma

;------------------------type in "b" for black or "w" for white icons
BlackOrWhiteButtons=w

------------------------------------------
Measure

[MeasurePlayer]
Measure=Plugin
Plugin=NowPlaying
PlayerName=Spotify
PlayerType=TITLE
PlayerPath=
DisableLeadingZero=0

[MeasureTrack]
Measure=Plugin
Plugin=SpotifyPlugin
Type=TrackName

[MeasureArtist]
Measure=Plugin
Plugin=SpotifyPlugin
Type=ArtistName

[MeasureAlbum]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=AlbumName

[MeasureCover]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=AlbumArt
Res=300
DefaultPath=#@#Default.png
CoverPath=#@#Cover.png

[MeasureTime]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=Position

#[MeasureTMinute]
#Measure=Calc
#Formula=(MeasureTime - (MeasureTime % 60)) /60
#
#[MeasureTSecond]
#Measure=Calc
#Formula=MeasureTime % 60
#
#[MeasureTZero]
#Measure=Calc
#Formula=(MeasureTime % 60) < 10 ? 0 : 1
#Substitute="1":""

[MeasureProgress]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=Progress
Substitute="NaN":"0"

[MeasureState]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=Playing
Substitute="0":"Play#BlackOrWhiteButtons#.png","1":"Pause#BlackOrWhiteButtons#.png","2":"Play#BlackOrWhiteButtons#.png"

[MeasureVolume]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=VOLUME

[MeasureVolumeInt]
Measure=Calc
Formula=[MeasureVolume]*0.01
DynamicVariables=1

------------------------------------------
Progress Measures

[MeasureProgress]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=PROGRESS
MaxValue=100

[MeasureProgressD]
Measure=Calc
Formula=(MeasureProgress)

[MeasureProgressP1]
Measure=Calc
Formula=MeasureProgressD/0.80

[MeasureProgressP2]
Measure=Calc
Formula=(MeasureProgressD-0.80)/0.20

[MeasureAlways]
Measure=Calc
Formula=1
------------------------------------------
Meters

[MeterCover]
Meter=Image
MeasureName=MeasureCover
X=350
Y=100
H=50
W=50
LeftMouseDownAction= !execute ["C:\Users\Nfam0us\AppData\Roaming\Spotify\spotify.exe"]

====================================================================================================VOLUME

[Background]
Meter=IMAGE
SolidColor=20, 20, 20, 200
X=170
Y=111
H=2
W=70

[Volume]
Meter=Bar
MeasureName=MeasureVolumeInt
BarColor=#graph.line#
BarOrientation=Horizontal
X=-5r
Y=0r
W=75
H=2


[Less]
Meter=Image
ImageName=minus2.png
X=-15r
y=-6r
H=12
W=12
LeftMouseUpAction=!Execute [!RainmeterPluginBang "MeasurePlayer SetVolume +5"]

[More]
Meter=Image
ImageName=plus2.png
X=93r
y=r
H=12
W=12
LeftMouseUpAction=!Execute [!RainmeterPluginBang "MeasurePlayer SetVolume -5"]

===================================================================Player Name Text

[MeterBackground]
Meter=IMAGE
X=182
Y=96
W=90
H=30
SolidColor=0,0,0,1
SolidColor2=0,0,0,1
GradientAngle=0
Hidden=0

[MeterText]
Meter=STRING
X=r
Y=r
FontColor=255,255,255,180
StringStyle=Normal
FontSize=10
StringAlign=Left
FontFace=Tahoma
AntiAlias=1
Hidden=0
Prefix="Spotify"
LeftMouseDownAction= !execute ["C:\Users\Nfam0us\AppData\Roaming\Spotify\spotify.exe"]



======================================================================================================CONTROL



[Background3]
Meter=IMAGE
SolidColor=255,255,255,180
X=320
Y=149
W=130
H=1

[Background4]
Meter=IMAGE
SolidColor=255,255,255,180
X=320
Y=125
W=1
H=24

[Background4B]
Meter=IMAGE
SolidColor255,255,255,180
X=320
Y=78
W=1
H=7

[Background5]
Meter=ROUNDLINE
MeasureName=MeasureAlways
X=221
Y=5
W=200
H=200
StartAngle=1.57075
RotationAngle=-3.2
LineLength=15
LineStart=13
LineColor=255,255,255,180
AntiAlias=1
Solid=1

[Background6]
Meter=IMAGE
SolidColor=255,255,255,180
X=21
Y=118
W=300
H=2

[Background7]
Meter=ROUNDLINE
MeasureName=MeasureAlways
X=221
Y=5
W=200
H=200
StartAngle=1.57075
RotationAngle=-3.15
LineLength=27
LineStart=25
LineColor=#graph.line2#
AntiAlias=1
Solid=1

[Background8]
Meter=ROUNDLINE
MeasureName=MeasureAlways
X=221
Y=5
W=200
H=200
StartAngle=1.57075
RotationAngle=-3.15
LineLength=22
LineStart=20
LineColor=#graph.line#
AntiAlias=1
Solid=1


=============================================================================================================
[Background2control]
Meter=IMAGE
SolidColor=0,0,0,1
X=57
Y=99
W=105
H=18

[Prev]
Meter=IMAGE
ImageName=Prev#BlackOrWhiteButtons#.png
X=r
Y=r
W=18
H=18
AntiAlias=1
LeftMouseUpAction=[!CommandMeasure "MeasurePlayer" "Previous"]

[Play]
Meter=IMAGE
ImageName=[MeasureState]
X=19r
Y=r
W=19
H=19
AntiAlias=1
LeftMouseUpAction=[!CommandMeasure "MeasurePlayer" "PlayPause"]
DynamicVariables=1

[Play]
Meter=BUTTON
ButtonImage=[mStateButton]
X=25r
Y=115
LeftMouseUpAction=[!CommandMeasure mPlayer "PlayPause"]
DynamicVariables=1

[Stop]
Meter=IMAGE
ImageName=Stop#BlackOrWhiteButtons#.png
X=14r
Y=r
W=18
H=18
AntiAlias=1
LeftMouseUpAction=[!CommandMeasure "MeasurePlayer" "Stop"]

[Next]
Meter=IMAGE
ImageName=Next#BlackOrWhiteButtons#.png
X=22r
Y=r
W=18
H=18
AntiAlias=1
LeftMouseUpAction=[!CommandMeasure "MeasurePlayer" "Next"]

============================================================================================================TIME

[Time]
Meter=STRING
MeterStyle=StyleLabel
MeasureName=MeasureTime
#MeasureName=MeasureTMinute
#MeasureName2=MeasureTZero
#MeasureName3=MeasureTSecond
x=275
y=95
FontColor=255,255,255,180
FontFace=Tahoma
FontSize=11
StringStyle=Normal
AntiAlias=1
#Text=%1:%2%3

===================================================================================================MUSIC MONITOR

[Track]
Meter=STRING
MeasureName=MeasureTrack
x=315
y=124
W=335
H=38
ClipString=1
FontColor=#color#
FontFace=#font#
solidcolor
FontSize=10
StringAlign=right
StringStyle=NORMAL
AntiAlias=1

[Artist]
Meter=STRING
MeasureName=MeasureArtist
Text=%1
X=315
Y=76
W=335
H=18
ClipString=1
FontColor=#color#
solidcolor
FontFace=#font#
FontSize=10
StringAlign=right
StringStyle=NORMAL
AntiAlias=1

-----------------------------------------------------------------------------------------------------
Progress Rings


[ProgressBarBG]
Meter=IMAGE
SolidColor=#graph.line2#
X=21
Y=120
W=300
H=2

[ProgressBar]
MeasureName=MeasureProgressP1
Meter=BAR
X=r
Y=r
W=300
H=2
BarColor=#graph.line#
BarOrientation=horizontal

[MeterProgressRingBG2]
Meter=ROUNDLINE
MeasureName=MeasureAlways
X=221
Y=5
W=200
H=200
StartAngle=1.57075
RotationAngle=-3.2
LineLength=17
LineStart=15
LineColor=#graph.line2#
AntiAlias=1
Solid=1

[MeterProgressRing2]
MeasureName=MeasureProgressP2
Meter=ROUNDLINE
X=r
Y=r
W=200
H=200
StartAngle=1.57075
RotationAngle=-3.2
LineLength=17
LineStart=15
AntiAlias=1
LineColor=#graph.line#
Solid=1

pietertje
Posts: 2
Joined: July 27th, 2016, 3:57 pm

Re: Spotify Plugin Released! Now with less bugs!

Post by pietertje »

Hello,

I have combined this plugin with the skin of illustro.
It works nice but the time counter doesn't work properly.
The seconds go to 60 instead of 59. It goes from 1:58 to 1:59 to 1:60 and then quickly goes to 2:00

Do you guys know a fix for this?

My version of your plugin.

Code: Select all

[Metadata]
Description=Displays information on your currently playing song in Spotify.
License=Creative Commons BY-NC-SA 3.0
Version=1.0.0

[Variables]
fontName=Trebuchet MS
textSize=8
colorBar=235,170,0,255
colorText=255,255,255,205
RoundTo=0.0


; ----------------------------------
;              MEASURES
; ----------------------------------

[MeasurePlayer]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=Spotify
PlayerType=TITLE
DisableLeadingZero=1
Substitute="":"N\A"

[MeasureProgress]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=Progress

[MeasureTime]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=Position

[MeasureTrack]
Measure=Plugin
Plugin=SpotifyPlugin
Type=TrackName
Substitute="":"Track"

[MeasureArtist]
Measure=Plugin
Plugin=SpotifyPlugin
Type=ArtistName
Substitute="":"Artist"

[MeasureCover]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=AlbumArt
Res=300
DefaultPath=#@#Default.png
CoverPath=#@#Cover.png

; ----------------------------------
;               STYLES
; ----------------------------------

[styleTitle]
StringAlign=CENTER
StringCase=UPPER
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,50
FontColor=#colorText#
FontFace=#fontName#
FontSize=10
AntiAlias=1
ClipString=1

[styleLeftText]
StringAlign=LEFT
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleRightText]
StringAlign=RIGHT
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleBar]
BarColor=#colorBar#
BarOrientation=HORIZONTAL
SolidColor=255,255,255,15

[styleButton]
MouseActionCursor=1
UpdateDivider=10000
Hidden=0
X=16r
Y=12

[styleSeperator]
SolidColor=255,255,255,15

; ----------------------------------
;                METERS
; ----------------------------------

[MeterTitle]
Meter=STRING
MeterStyle=styleTitle
X=100
Y=12
W=50
H=18
Text="Music"

[MeterArtwork]
Meter=IMAGE
MeasureName=MeasureCover
AntiAlias=1
PreserveAspectRatio=1
X=12
Y=40
H=184
W=184

[MeterTrack]
Meter=String
Meter=STRING
MeterStyle=styleLeftText
MeasureName=MeasureTrack
x=10
Y=240
W=188
H=14

[meterSeperator]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=252
W=188
H=1

[MeterArtist]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=MeasureArtist
X=10
Y=260
W=190
H=14

[meterSeperator]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=272
W=188
H=1

[Time]
Meter=STRING
MeterStyle=StyleLeftText
MeasureName=MeasureTime
x=10
y=280

[MeterProgressBar]
Meter=BAR
MeterStyle=styleBar
MeasureName=MeasureProgress
Y=292
X=10
W=188
H=1

EDIT:
I asked some programmer guy i know. He said it's probably because it doesn't floor the number.
In the Spotify.dll is a 'problem':

Code: Select all

case Measure.MeasureType.Position:
          double playingPosition = this.Current_Status.playing_position;
          double num1 = (double) (int) Math.Floor(1.0 * playingPosition / 60.0);
          double num2 = playingPosition - num1 * 60.0;
          return num1.ToString("#00") + ":" + num2.ToString("00");

The seconds are not rounded.

I think it should be something like this?

Code: Select all

case Measure.MeasureType.Position:
          double playingPosition = this.Current_Status.playing_position;
          double num1 = (double) (int) Math.Floor(1.0 * playingPosition / 60.0);
          double num2 = Math.Floor(playingPosition - num1 * 60.0);
          return num1.ToString("#00") + ":" + num2.ToString("00");
I cannot edit the dll. Raptor, can you edit the dll and maybe fix it?
User avatar
.raptor
Posts: 220
Joined: April 3rd, 2013, 11:03 pm
Location: Norway

Re: Spotify Plugin Released! Now with less bugs!

Post by .raptor »

Update!
Song duration and playing position should now correctly switch from 0:59 to 1:00, instead of 0:60.
Several other tweaks and fixes.
pietertje
Posts: 2
Joined: July 27th, 2016, 3:57 pm

Re: Spotify Plugin Released! Now with less bugs!

Post by pietertje »

.raptor wrote:Update!
Song duration and playing position should now correctly switch from 0:59 to 1:00, instead of 0:60.
Several other tweaks and fixes.
Thank you for the quick update!!!

EDIT:

Is there a way to calculatie the remaining time of a song in the .ini file?
Length - position or something?