It is currently June 23rd, 2024, 11:33 pm

How do i hide a skin when music is not playing

Get help with creating, editing & fixing problems with skins
Tadiu
Posts: 4
Joined: February 15th, 2019, 11:27 pm

How do i hide a skin when music is not playing

Post by Tadiu »

Hi, Im new at this and I don't know much about coding. I would like to hide one skin i have when music is not playing. If someone knows what I have to change I will really apreciate it! The code is this:

Code: Select all

Rainmeter]
Update=1000
Author=Connect-R
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1

[Variables]
@include=#@#Variables.inc
Player=CAD

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasurePlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=TITLE

[MeasureArtist]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[MeasurePlayer]
PlayerType=ARTIST

[MeasureTrack]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[MeasurePlayer]
PlayerType=TITLE

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterSign]
Meter=String
StringAlign=Center
FontColor=255,255,255
FontFace=Zona Pro
FontSize=20
X=200
Y=0
Text="♪"
DynamicVariables=1
AntiAlias=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterArtistInfo]
Meter=String
MeasureName=MeasureArtist
StringAlign=Center
FontColor=255,255,255
FontFace=LHF Stanford Script
FontSize=35
X=200
Y=35r
W=400
Text="%1"
DynamicVariables=1
AntiAlias=1
ClipString=1

[MeterTrackInfo]
Meter=String
MeasureName=MeasureTrack
StringAlign=Center
FontColor=255,255,255
FontFace=Quicksand
FontSize=11
X=200
Y=40r
W=400
Text="%1"
InlinePattern=".*"
InlineSetting=CharacterSpacing | 1 | 1
DynamicVariables=1
AntiAlias=1
ClipString=1
User avatar
balala
Rainmeter Sage
Posts: 16325
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: How do i hide a skin when music is not playing

Post by balala »

Tadiu wrote: February 15th, 2019, 11:33 pm Hi, Im new at this and I don't know much about coding. I would like to hide one skin i have when music is not playing. If someone knows what I have to change I will really apreciate it!
Add a new NowPlaying measure, beside the existing ones:

Code: Select all

[MeasureSta]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=STATE
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!HideFade]
IfFalseAction=[!ShowFade]
The above measure returns 0 if the player isn't playing, 1 if it is playing and 2 if it is paused. According to the posted IfCondition, if the measure returns 0 (so when the player is stopped), the skin is hidden by the !HideFade bang, used into the IfTrueAction option. For other cases (when the player is playing or is paused), the IfFalseAction option is executed and the skin is shown.
Another possibility is to replace the above PlayerType=STATE option with PlayerType=STATUS. In this case the skin is shown while the player is open and is hidden when you close the player.

As a side note, I just mention that although NowPlaying earlier was a plugin, a while ago it became an internal measure. Although it is working if coded as plugin (especially for backward compatibility reason), it is better to use it as a measure. That's why these measures should have to be written as such:

Code: Select all

[MeasurePlayer]
Measure=NowPlaying
PlayerName=#Player#
PlayerType=TITLE

[MeasureArtist]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=ARTIST

[MeasureTrack]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=TITLE
Tadiu
Posts: 4
Joined: February 15th, 2019, 11:27 pm

Re: How do i hide a skin when music is not playing

Post by Tadiu »

balala wrote: February 16th, 2019, 7:23 am Add a new NowPlaying measure, beside the existing ones:

Code: Select all

[MeasureSta]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=STATE
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!HideFade]
IfFalseAction=[!ShowFade]
The above measure returns 0 if the player isn't playing, 1 if it is playing and 2 if it is paused. According to the posted IfCondition, if the measure returns 0 (so when the player is stopped), the skin is hidden by the !HideFade bang, used into the IfTrueAction option. For other cases (when the player is playing or is paused), the IfFalseAction option is executed and the skin is shown.
Another possibility is to replace the above PlayerType=STATE option with PlayerType=STATUS. In this case the skin is shown while the player is open and is hidden when you close the player.

As a side note, I just mention that although NowPlaying earlier was a plugin, a while ago it became an internal measure. Although it is working if coded as plugin (especially for backward compatibility reason), it is better to use it as a measure. That's why these measures should have to be written as such:

Code: Select all

[MeasurePlayer]
Measure=NowPlaying
PlayerName=#Player#
PlayerType=TITLE

[MeasureArtist]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=ARTIST

[MeasureTrack]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=TITLE
Hi, thanks for the reply!!. It seems to hide the skin everytime even when I'm not playing something. Don't know why either.
User avatar
balala
Rainmeter Sage
Posts: 16325
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: How do i hide a skin when music is not playing

Post by balala »

Tadiu wrote: February 16th, 2019, 6:48 pm It seems to hide the skin everytime even when I'm not playing something. Don't know why either.
That's exactly was I did, adding those measures/options. Not this is what you intended? Because this is what I understood from your request:
Tadiu wrote: February 15th, 2019, 11:33 pm I would like to hide one skin i have when music is not playing.
Or you would like to hide another skin, not the current one?
Tadiu
Posts: 4
Joined: February 15th, 2019, 11:27 pm

Re: How do i hide a skin when music is not playing

Post by Tadiu »

balala wrote: February 16th, 2019, 6:55 pm That's exactly was I did, adding those measures/options. Not this is what you intended? Because this is what I understood from your request:

Or you would like to hide another skin, not the current one?
My mistake haha. I wanted to say that the skin hides even when the music is playing. Sorry for the misunderstanding. I don't know if it could be that I am using spotify as the player. But since it happens also with youtube maybe is not.
User avatar
balala
Rainmeter Sage
Posts: 16325
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: How do i hide a skin when music is not playing

Post by balala »

Tadiu wrote: February 16th, 2019, 7:06 pm I wanted to say that the skin hides even when the music is playing. Sorry for the misunderstanding. I don't know if it could be that I am using spotify as the player. But since it happens also with youtube maybe is not.
Weird. Because in the code posted by you, in your initial request you have set the Player variable to Player=CAD ([Variables] section), which doesn't meet Spotify. For Spotify you should have to set this variable to Player=Spotify.
Now if you've set the variable properly, this can be a problem, because Spotify is just a partially supported player and as such nor the State, nor the Status option doesn't work. Probably with these options the appropriate measure is always returning 0, which makes the skin hidden. Unfortunately I can't check, because I'm not using Spotify and I don't have it installed.
But there is a Spotify plugin released and published. I think it properly returns both the state and the status (however, since I never tried it out, I'm not sure, nor here). But unfortunately I can't help here, someone who is using this player and the appropriate plugin will have to help you. Sorry.
But, there is one more but: the NowPlaying measures don't support YouTube. Again, there is a plugin which does, the WebNowPlaying. I don't know how does this plugin supports Spotify though. But maybe it does. Maybe it worth a try.
Tadiu
Posts: 4
Joined: February 15th, 2019, 11:27 pm

Re: How do i hide a skin when music is not playing

Post by Tadiu »

balala wrote: February 16th, 2019, 7:24 pm Weird. Because in the code posted by you, in your initial request you have set the Player variable to Player=CAD ([Variables] section), which doesn't meet Spotify. For Spotify you should have to set this variable to Player=Spotify.
Now if you've set the variable properly, this can be a problem, because Spotify is just a partially supported player and as such nor the State, nor the Status option doesn't work. Probably with these options the appropriate measure is always returning 0, which makes the skin hidden. Unfortunately I can't check, because I'm not using Spotify and I don't have it installed.
But there is a Spotify plugin released and published. I think it properly returns both the state and the status (however, since I never tried it out, I'm not sure, nor here). But unfortunately I can't help here, someone who is using this player and the appropriate plugin will have to help you. Sorry.
But, there is one more but: the NowPlaying measures don't support YouTube. Again, there is a plugin which does, the WebNowPlaying. I don't know how does this plugin supports Spotify though. But maybe it does. Maybe it worth a try.
Changing the Player=CAD to Player=Spotify seemes to solve the problem! Thank you for the help and time :)
User avatar
balala
Rainmeter Sage
Posts: 16325
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: How do i hide a skin when music is not playing

Post by balala »

Tadiu wrote: February 16th, 2019, 8:25 pm Changing the Player=CAD to Player=Spotify seemes to solve the problem!
Did it? I'm surprised, because the State and Status options should have to not be supported by the NowPlaying measure with Spotify. At least according to the help.
I'm glad if you got it working as intended though.
RainOnMeter
Posts: 4
Joined: December 26th, 2023, 8:14 am

Re: How do i hide a skin when music is not playing

Post by RainOnMeter »

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
MouseScrollUpAction=[!SetVariable size "(#size#+0.05)"][!WriteKeyValue Variables size "(#size#+0.05)"][!Refresh] 
MouseScrollDownAction=[!SetVariable size "(#size#-0.05 < 0.2 ? 0.2 : #size#-0.05)"][!WriteKeyValue Variables size "(#size#-0.05 < 0.2 ? 0.2 : #size#-0.05)"][!Refresh]

[Metadata]
Name=Advansity Music Player 
Author=xenium
Information=Music player
Version=1.0
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0


; © 2023 by xenium

[Variables]

@Include=#@#Variables.inc

PositionLevel=[MeasureProgress]

size=0.6

BarW=(#size#*4)
BarH=(#size#*150)

;============Measures================



[MeasurePlayer]
Measure=Plugin
Plugin=#PluginInUse#
PlayerName=#Player#
PlayerType=TITLE
Substitute="":"Advansity Player"

[MeasureArtist]
Measure=Plugin
Plugin=#PluginInUse#
PlayerName=[MeasurePlayer]
PlayerType=ARTIST
Substitute="":"No Song"

[MeasureCover]
Measure=Plugin
Plugin=#PluginInUse#
PlayerName=[MeasurePlayer]
PlayerType=COVER
DefaultPath=#@#PlayerIcons\nocover2.png
Substitute="":"#@#PlayerIcons\nocover2.png"

[MeasurePosition]
Measure=Plugin
Plugin=#PluginInUse#
PlayerName=[MeasurePlayer]
PlayerType=POSITION

[MeasureSetPositionLevel]
Measure=Calc
Formula=#PositionLevel#
DynamicVariables=1

[MeasureDuration]
Measure=Plugin
Plugin=#PluginInUse#
PlayerName=[MeasurePlayer]
PlayerType=DURATION

[MeasureProgress]
Measure=Plugin
Plugin=#PluginInUse#
PlayerName=[MeasurePlayer]
PlayerType=PROGRESS

[MeasureStateButton]
Measure=Plugin
Plugin=#PluginInUse#
PlayerName=[MeasurePlayer]
PlayerType=STATE
Substitute="0":"#@#PlayerIcons\play.png","1":"#@#PlayerIcons\pause.png","2":"#@#PlayerIcons\play.png"

[MeasureWin7Audio]
Measure=Plugin
Plugin=Win7AudioPlugin


;==============Meters===============


[MeterTitle]
Meter=STRING
MeasureName=MeasurePlayer
X=(#size#*175)
Y=(#size#*35)
W=(#size#*400)
H=(#size#*50)
FontColor=#PlayerTextColor#
FontEffectColor=#FontEffectColor#
FontSize=(#size#*22)
FontFace=#FontPlayer#
StringEffect=shadow
StringAlign=left
StringStyle=normal
AntiAlias=1
ClipString=1

[MeterArtist]
Meter=STRING
MeasureName=MeasureArtist
X=(#size#*175)
Y=(#size#*73)
W=(#size#*400)
H=(#size#*50)
FontColor=#PlayerTextColor2#
FontEffectColor=#FontEffectColor#
FontSize=(#size#*20)
FontFace=#FontPlayer#
StringEffect=shadow
StringAlign=left
StringStyle=normal
AntiAlias=1
ClipString=1

[MeterAlbumArt]
Meter=Image
MeasureName=MeasureCover
X=0
Y=0
W=(#size#*150)
H=(#size#*150)
SolidColor=0,0,0,1
PreserveAspectRatio=2
MouseOverAction=[!ShowMeterGroup "Player"][!SetOption MeterAlbumArt ImageAlpha 50][!UpdateMeter MeterAlbumArt][!Redraw]
MouseLeaveAction=[!HideMeterGroup "Player"][!SetOption MeterAlbumArt ImageAlpha 255][!UpdateMeter MeterAlbumArt][!Redraw]

[MeterProgressBar]
Meter=Shape
X=(#size#*160)
Y=0
Shape=Rectangle 0,0,#BarW#,#BarH# |  Fill Color 120,120,120,120 | StrokeWidth 0
Shape2=Rectangle 0,#BarH#,#BarW#,(-[MeasureProgress:%]*#BarH#/100) | Fill LinearGradient BarGradient | StrokeWidth 0
BarGradient=90 | #ProgressBarLowColor# ; 0.0 | #ProgressBarMidColor# ; (0.5 + (100-[MeasureProgress:%])/100) | #ProgressBarHighColor# ; (1.0 + (100-[MeasureProgress:%])/100)
DynamicVariables=1
LeftMouseUpAction=[!SetVariable PositionLevel "(100-$MouseY:%$)"][!Update][!CommandMeasure "MeasureArtist" "SetPosition [MeasureSetPositionLevel]"]

[MeterTime]
Meter=STRING
MeasureName=MeasurePosition
MeasureName2=MeasureDuration
X=(#size#*175)
Y=(#size#*127)
FontColor=#PlayerTextColor#
FontEffectColor=#FontEffectColor#
FontSize=(#size#*16)
FontFace=#FontPlayer#
StringEffect=shadow
StringAlign=left
StringStyle=normal
AntiAlias=1
Text=%1 / %2

[Volume]
Meter=Image
ImageName=#@#PlayerIcons\Volume.png
X=(#size#*28)
Y=(#size#*15)
W=(#size#*29)
H=(#size#*29)
Group=Player
Hidden=1

[VolumeUp]
Meter=Image
ImageName=#@#PlayerIcons\Up.png
X=(#size#*13)
Y=(#size#*12)
W=(#size#*12)
H=(#size#*12)
LeftMouseUpAction=[!CommandMeasure MeasureWin7Audio "ChangeVolume +10"]
Group=Player
Hidden=1

[VolumeDown]
Meter=Image
ImageName=#@#PlayerIcons\Down.png
X=(#size#*13)
Y=(#size#*32)
W=(#size#*12)
H=(#size#*12)
LeftMouseUpAction=[!CommandMeasure MeasureWin7Audio "ChangeVolume -10"]
Group=Player
Hidden=1

[VolumeText]
Meter=STRING
X=(#size#*142)
Y=(#size#*14)
W=(#size#*45)
H=(#size#*16)
FontColor=#PlayerTextColor#
FontEffectColor=#FontEffectColor#
FontSize=(#size#*20)
FontFace=#FontPlayer#
StringEffect=shadow
StringAlign=right
StringStyle=normal
AntiAlias=1
Text=[MeasureWin7Audio:] %
DynamicVariables=1
Group=Player
Hidden=1

[MeterPrevious]
Meter=Image
ImageName=#@#PlayerIcons\previous.png
X=(#size#*10)
Y=(#size#*110)
W=(#size#*35)
H=(#size#*35)
AntiAlias=1
LeftMouseUpAction=[!CommandMeasure MeasurePlayer "Previous"]
Group=Player
Hidden=1

[MeterPlayPause]
Meter=Image
ImageName=[MeasureStateButton]
X=(#size#*60)
Y=(#size#*110)
W=(#size#*35)
H=(#size#*35)
AntiAlias=1
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure "MeasureStateButton" "PlayPause"]
Group=Player
Hidden=1

[MeterNext]
Meter=Image
ImageName=#@#PlayerIcons\next.png
X=(#size#*110)
Y=(#size#*110)
W=(#size#*35)
H=(#size#*35)
AntiAlias=1
LeftMouseUpAction=[!CommandMeasure MeasurePlayer "Next"]
Group=Player
Hidden=1



; © 2023 by xenium


This is the code to the music player skin i use for spotify.
I couldn't find a way to hide it after i close spotify.
Can someone edit the code and make it so that the skin hides after closing the app and comes back when i open the app..

The following is the link to the skin i use:
https://www.deviantart.com/xenium-art/art/Advansity-UPDATED-12-AUG-2023-847234085
Last edited by balala on December 26th, 2023, 8:30 am, edited 1 time in total.
Reason: Please use <code> tags whenever are posting codes. It's the </> button.
User avatar
xenium
Posts: 872
Joined: January 4th, 2018, 9:52 pm

Re: How do i hide a skin when music is not playing

Post by xenium »

RainOnMeter wrote: December 26th, 2023, 8:27 am

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
MouseScrollUpAction=[!SetVariable size "(#size#+0.05)"][!WriteKeyValue Variables size "(#size#+0.05)"][!Refresh] 
MouseScrollDownAction=[!SetVariable size "(#size#-0.05 < 0.2 ? 0.2 : #size#-0.05)"][!WriteKeyValue Variables size "(#size#-0.05 < 0.2 ? 0.2 : #size#-0.05)"][!Refresh]

[Metadata]
Name=Advansity Music Player 
Author=xenium
Information=Music player
Version=1.0
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0


; © 2023 by xenium

[Variables]

@Include=#@#Variables.inc

PositionLevel=[MeasureProgress]

size=0.6

BarW=(#size#*4)
BarH=(#size#*150)

;============Measures================



[MeasurePlayer]
Measure=Plugin
Plugin=#PluginInUse#
PlayerName=#Player#
PlayerType=TITLE
Substitute="":"Advansity Player"

[MeasureArtist]
Measure=Plugin
Plugin=#PluginInUse#
PlayerName=[MeasurePlayer]
PlayerType=ARTIST
Substitute="":"No Song"

[MeasureCover]
Measure=Plugin
Plugin=#PluginInUse#
PlayerName=[MeasurePlayer]
PlayerType=COVER
DefaultPath=#@#PlayerIcons\nocover2.png
Substitute="":"#@#PlayerIcons\nocover2.png"

[MeasurePosition]
Measure=Plugin
Plugin=#PluginInUse#
PlayerName=[MeasurePlayer]
PlayerType=POSITION

[MeasureSetPositionLevel]
Measure=Calc
Formula=#PositionLevel#
DynamicVariables=1

[MeasureDuration]
Measure=Plugin
Plugin=#PluginInUse#
PlayerName=[MeasurePlayer]
PlayerType=DURATION

[MeasureProgress]
Measure=Plugin
Plugin=#PluginInUse#
PlayerName=[MeasurePlayer]
PlayerType=PROGRESS

[MeasureStateButton]
Measure=Plugin
Plugin=#PluginInUse#
PlayerName=[MeasurePlayer]
PlayerType=STATE
Substitute="0":"#@#PlayerIcons\play.png","1":"#@#PlayerIcons\pause.png","2":"#@#PlayerIcons\play.png"

[MeasureWin7Audio]
Measure=Plugin
Plugin=Win7AudioPlugin


;==============Meters===============


[MeterTitle]
Meter=STRING
MeasureName=MeasurePlayer
X=(#size#*175)
Y=(#size#*35)
W=(#size#*400)
H=(#size#*50)
FontColor=#PlayerTextColor#
FontEffectColor=#FontEffectColor#
FontSize=(#size#*22)
FontFace=#FontPlayer#
StringEffect=shadow
StringAlign=left
StringStyle=normal
AntiAlias=1
ClipString=1

[MeterArtist]
Meter=STRING
MeasureName=MeasureArtist
X=(#size#*175)
Y=(#size#*73)
W=(#size#*400)
H=(#size#*50)
FontColor=#PlayerTextColor2#
FontEffectColor=#FontEffectColor#
FontSize=(#size#*20)
FontFace=#FontPlayer#
StringEffect=shadow
StringAlign=left
StringStyle=normal
AntiAlias=1
ClipString=1

[MeterAlbumArt]
Meter=Image
MeasureName=MeasureCover
X=0
Y=0
W=(#size#*150)
H=(#size#*150)
SolidColor=0,0,0,1
PreserveAspectRatio=2
MouseOverAction=[!ShowMeterGroup "Player"][!SetOption MeterAlbumArt ImageAlpha 50][!UpdateMeter MeterAlbumArt][!Redraw]
MouseLeaveAction=[!HideMeterGroup "Player"][!SetOption MeterAlbumArt ImageAlpha 255][!UpdateMeter MeterAlbumArt][!Redraw]

[MeterProgressBar]
Meter=Shape
X=(#size#*160)
Y=0
Shape=Rectangle 0,0,#BarW#,#BarH# |  Fill Color 120,120,120,120 | StrokeWidth 0
Shape2=Rectangle 0,#BarH#,#BarW#,(-[MeasureProgress:%]*#BarH#/100) | Fill LinearGradient BarGradient | StrokeWidth 0
BarGradient=90 | #ProgressBarLowColor# ; 0.0 | #ProgressBarMidColor# ; (0.5 + (100-[MeasureProgress:%])/100) | #ProgressBarHighColor# ; (1.0 + (100-[MeasureProgress:%])/100)
DynamicVariables=1
LeftMouseUpAction=[!SetVariable PositionLevel "(100-$MouseY:%$)"][!Update][!CommandMeasure "MeasureArtist" "SetPosition [MeasureSetPositionLevel]"]

[MeterTime]
Meter=STRING
MeasureName=MeasurePosition
MeasureName2=MeasureDuration
X=(#size#*175)
Y=(#size#*127)
FontColor=#PlayerTextColor#
FontEffectColor=#FontEffectColor#
FontSize=(#size#*16)
FontFace=#FontPlayer#
StringEffect=shadow
StringAlign=left
StringStyle=normal
AntiAlias=1
Text=%1 / %2

[Volume]
Meter=Image
ImageName=#@#PlayerIcons\Volume.png
X=(#size#*28)
Y=(#size#*15)
W=(#size#*29)
H=(#size#*29)
Group=Player
Hidden=1

[VolumeUp]
Meter=Image
ImageName=#@#PlayerIcons\Up.png
X=(#size#*13)
Y=(#size#*12)
W=(#size#*12)
H=(#size#*12)
LeftMouseUpAction=[!CommandMeasure MeasureWin7Audio "ChangeVolume +10"]
Group=Player
Hidden=1

[VolumeDown]
Meter=Image
ImageName=#@#PlayerIcons\Down.png
X=(#size#*13)
Y=(#size#*32)
W=(#size#*12)
H=(#size#*12)
LeftMouseUpAction=[!CommandMeasure MeasureWin7Audio "ChangeVolume -10"]
Group=Player
Hidden=1

[VolumeText]
Meter=STRING
X=(#size#*142)
Y=(#size#*14)
W=(#size#*45)
H=(#size#*16)
FontColor=#PlayerTextColor#
FontEffectColor=#FontEffectColor#
FontSize=(#size#*20)
FontFace=#FontPlayer#
StringEffect=shadow
StringAlign=right
StringStyle=normal
AntiAlias=1
Text=[MeasureWin7Audio:] %
DynamicVariables=1
Group=Player
Hidden=1

[MeterPrevious]
Meter=Image
ImageName=#@#PlayerIcons\previous.png
X=(#size#*10)
Y=(#size#*110)
W=(#size#*35)
H=(#size#*35)
AntiAlias=1
LeftMouseUpAction=[!CommandMeasure MeasurePlayer "Previous"]
Group=Player
Hidden=1

[MeterPlayPause]
Meter=Image
ImageName=[MeasureStateButton]
X=(#size#*60)
Y=(#size#*110)
W=(#size#*35)
H=(#size#*35)
AntiAlias=1
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure "MeasureStateButton" "PlayPause"]
Group=Player
Hidden=1

[MeterNext]
Meter=Image
ImageName=#@#PlayerIcons\next.png
X=(#size#*110)
Y=(#size#*110)
W=(#size#*35)
H=(#size#*35)
AntiAlias=1
LeftMouseUpAction=[!CommandMeasure MeasurePlayer "Next"]
Group=Player
Hidden=1



; © 2023 by xenium


This is the code to the music player skin i use for spotify.
I couldn't find a way to hide it after i close spotify.
Can someone edit the code and make it so that the skin hides after closing the app and comes back when i open the app..

The following is the link to the skin i use:
https://www.deviantart.com/xenium-art/art/Advansity-UPDATED-12-AUG-2023-847234085
Add the measure [MeasureStatus] like this:

Code: Select all

;============Measures================

[MeasureStatus]
Measure=NowPlaying
PlayerName=#Player#
PlayerType=STATUS
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!HideFade]
IfFalseAction=[!ShowFade]

[MeasurePlayer]
...
...

Then refresh the skin