It is currently March 28th, 2024, 3:20 pm
Get help with creating, editing & fixing problems with skins
sad_story
Posts: 7 Joined: April 19th, 2022, 5:26 pm
Post
by sad_story » April 21st, 2022, 3:02 am
I currently have two skins (original code attribu: tion DD. 921 and Crafta)
One is a play/stop ff and rev toggle for Spotify. The other is displays "no music playing" when no music is playing, and shows artist and song title when Spotify is playing.
I want to combine the two such that the ff, stop/play. rev control only display when the music is playing.
The Skin for the toggle is:
Code: Select all
[Rainmeter]
@Include=#@#SpotifyPlayerVariables.ini
Update=40
Group=SpotifyPlayerMini
[Variables]
Color=#PrimaryColor#
FontColor=#SecondaryColor#
[MeterPlayPause]
Group=PlayButton
Meter=Image
ImageName=#@#images\[MeasureButtonState].png
ImageTint=#FontColor#
X=235
Y=215
W=70
H=70
LeftMouseUpAction=[!CommandMeasure MeasureNowPlaying "PlayPause"]
DynamicVariables=1
[MeterNext]
Meter=Image
ImageName=#@#images\Next.png
ImageTint=#FontColor#
X=306
Y=215
W=20
H=20
LeftMouseUpAction=[!CommandMeasure MeasureNowPlaying "Next"]
AntiAlias=1
[MeterPrevious]
Meter=Image
ImageName=#@#images\Previous.png
ImageTint=#FontColor#
X=215
Y=215
W=20
H=20
LeftMouseUpAction=[!CommandMeasure MeasureNowPlaying "Previous"]
AntiAlias=1
///////////////////
and the one for the display/no display is
Code: Select all
[MeasurePlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=Title
DisableLeadingZero=0
Substitute="":"#NoMusicPlaying#"
IfEqualValue=1
IfEqualAction=!Execute [!RainmeterShowMeter ErrorMessage][!RainmeterRedraw]
[MeasureArtist]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[MeasurePlayer]
PlayerType=Artist
[Title]
Meter=String
MeasureName=MeasurePlayer
X=645
Y=210
Text="%1"
FontFace=Calibri
FontColor=#Color2#
FontSize=12
StringAlign=Right
StringCase=Upper
InlineSetting=CharacterSpacing | 2 | 2
AntiAlias=1
[Artist]
Meter=String
MeasureName=MeasureArtist
X=650
Y=230
Text="%1"
FontFace=Calibri
FontColor=#Color2#
FontSize=27
StringAlign=Right
StringCase=Upper
InlineSetting=CharacterSpacing | 2 | 2
AntiAlias=1
Last edited by
SilverAzide on April 21st, 2022, 3:13 am, edited 1 time in total.
Reason: Please use code tags when posting code. It's the </> button.
David8192
Posts: 246 Joined: July 8th, 2021, 11:30 pm
Location: The King's Avenue, Golden Kingdom
Contact:
Post
by David8192 » April 21st, 2022, 9:00 am
sad_story wrote: ↑ April 21st, 2022, 3:02 am
I currently have two skins (original code attribu: tion DD. 921 and Crafta)
One is a play/stop ff and rev toggle for Spotify. The other is displays "no music playing" when no music is playing, and shows artist and song title when Spotify is playing.
I want to combine the two such that the ff, stop/play. rev control only display when the music is playing.
The Skin for the toggle is:
Code: Select all
[Rainmeter]
@Include=#@#SpotifyPlayerVariables.ini
Update=40
Group=SpotifyPlayerMini
[Variables]
Color=#PrimaryColor#
FontColor=#SecondaryColor#
[MeterPlayPause]
Group=PlayButton
Meter=Image
ImageName=#@#images\[MeasureButtonState].png
ImageTint=#FontColor#
X=235
Y=215
W=70
H=70
LeftMouseUpAction=[!CommandMeasure MeasureNowPlaying "PlayPause"]
DynamicVariables=1
[MeterNext]
Meter=Image
ImageName=#@#images\Next.png
ImageTint=#FontColor#
X=306
Y=215
W=20
H=20
LeftMouseUpAction=[!CommandMeasure MeasureNowPlaying "Next"]
AntiAlias=1
[MeterPrevious]
Meter=Image
ImageName=#@#images\Previous.png
ImageTint=#FontColor#
X=215
Y=215
W=20
H=20
LeftMouseUpAction=[!CommandMeasure MeasureNowPlaying "Previous"]
AntiAlias=1
///////////////////
and the one for the display/no display is
Code: Select all
[MeasurePlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=Title
DisableLeadingZero=0
Substitute="":"#NoMusicPlaying#"
IfEqualValue=1
IfEqualAction=!Execute [!RainmeterShowMeter ErrorMessage][!RainmeterRedraw]
[MeasureArtist]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[MeasurePlayer]
PlayerType=Artist
[Title]
Meter=String
MeasureName=MeasurePlayer
X=645
Y=210
Text="%1"
FontFace=Calibri
FontColor=#Color2#
FontSize=12
StringAlign=Right
StringCase=Upper
InlineSetting=CharacterSpacing | 2 | 2
AntiAlias=1
[Artist]
Meter=String
MeasureName=MeasureArtist
X=650
Y=230
Text="%1"
FontFace=Calibri
FontColor=#Color2#
FontSize=27
StringAlign=Right
StringCase=Upper
InlineSetting=CharacterSpacing | 2 | 2
AntiAlias=1
Code: Select all
[Rainmeter]
@Include=#@#SpotifyPlayerVariables.ini
Update=40
Group=SpotifyPlayerMini
[Variables]
Color=#PrimaryColor#
FontColor=#SecondaryColor#
======================================================
[processViewer]
Measure = Process
;Make sure the Spotify.exe is spelled correctly and exactly as the installed executable on your system
ProcessName = Spotify.exe
IfCondition = processViewer = 1
IfTrueAction = !ShowMeterGroup "controls"
IfFalseAction = !HideMeterGroup "controls"
=========================================================
[MeterPlayPause]
Group=PlayButton | controls
Meter=Image
ImageName=#@#images\[MeasureButtonState].png
ImageTint=#FontColor#
X=235
Y=215
W=70
H=70
LeftMouseUpAction=[!CommandMeasure MeasureNowPlaying "PlayPause"]
DynamicVariables=1
[MeterNext]
Group=controls
Meter=Image
ImageName=#@#images\Next.png
ImageTint=#FontColor#
X=306
Y=215
W=20
H=20
LeftMouseUpAction=[!CommandMeasure MeasureNowPlaying "Next"]
AntiAlias=1
[MeterPrevious]
Group=controls
Meter=Image
ImageName=#@#images\Previous.png
ImageTint=#FontColor#
X=215
Y=215
W=20
H=20
LeftMouseUpAction=[!CommandMeasure MeasureNowPlaying "Previous"]
AntiAlias=1
That should do it. Copy this code and replace your original code with it. It will be up and running.
David8192
Posts: 246 Joined: July 8th, 2021, 11:30 pm
Location: The King's Avenue, Golden Kingdom
Contact:
Post
by David8192 » April 21st, 2022, 9:07 am
Oh, yea, I did not combine the skins. I just got the "buttons" one to "appear" when music is playing and "disappear" when no music is playing.
sad_story
Posts: 7 Joined: April 19th, 2022, 5:26 pm
Post
by sad_story » April 21st, 2022, 2:05 pm
That's perfect & working
Thanks for the help. Amazing people on this forum!
loving learning how the code works...
David8192
Posts: 246 Joined: July 8th, 2021, 11:30 pm
Location: The King's Avenue, Golden Kingdom
Contact:
Post
by David8192 » May 2nd, 2022, 11:12 am
sad_story wrote: ↑ April 21st, 2022, 2:05 pm
That's perfect & working
Thanks for the help. Amazing people on this forum!
loving learning how the code works...