It is currently August 10th, 2020, 4:03 pm

Itunes Player Skin

Help with creating, editing & fixing problems with skins
tom0711
Posts: 39
Joined: April 29th, 2020, 5:55 pm

Itunes Player Skin

Post by tom0711 »

I have an itunes mini player skin and i want him to appear when i open itunes and disappear when i close it,is it possible to do such thing?
thank you

Code: Select all

[Rainmeter]
Update=10
AccurateText=1
;BackgroundMode=2
;SolidColor=255,255,255,50
ContextTitle=Select Media Player
ContextAction=[!ActivateConfig "#ROOTCONFIG#\Config"]
OnRefreshAction=[!HideMeterGroup "VolumeControl"][!CommandMeasure Transition "FadeOut('MeterAirPlay, MeterRepeat, MeterPrev, MeterPlayPause, MeterNext, MeterShuffle, MeterVolume, MeterSearch, MeterProgressBarBackground, MeterProgressBar, MeterPositionShadow, MeterPosition, MeterDurationShadow, MeterDuration')][!CommandMeasure Transition "FadeIn('MeterCover, MeterCoverOverlay, MeterTitleShadow, MeterTitle, MeterArtistShadow, MeterArtist')]



[Metadata]
Name=iTunes MiniPlayer
Author=NikolaRabra (rabra.deviantart.com)
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=2 (20140216)



[Variables]
@IncludeVars=#@#Variables.inc



[StringStyleTrack]
FontColor=0,0,0,255
FontFace=Roboto
StringStyle=Bold
StringAlign=Left
FontSize=10
ClipString=1
AntiAlias=1

[StringStyleArtist]
FontColor=0,0,0,255
FontFace=Roboto
StringStyle=Normal
StringAlign=Left
FontSize=8
ClipString=1
AntiAlias=1



;---- Measures ----

[Transition]
Measure=Script
ScriptFile=#@#Scripts\Transition.lua
Steps=10

[MeasureArtist]
Measure=Plugin
Plugin=NowPlaying
PlayerName=#Player#
PlayerType=ARTIST
UpdateDivider=50

[MeasureAlbum]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasureArtist]
PlayerType=ALBUM
UpdateDivider=50

[MeasureTitle]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasureArtist]
PlayerType=TITLE
UpdateDivider=50

[MeasureCover]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasureArtist]
PlayerType=COVER
Substitute="":"#@#Images\NoCover.png"
UpdateDivider=100

[MeasureState]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasureArtist]
PlayerType=STATE
Substitute="0":"Play.png","1":"Pause.png","2":"Play.png"
UpdateDivider=100

[MeasurePlayerStatus]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasureArtist]
PlayerType=STATUS
IfEqualValue=0
IfEqualAction=[!HideMeterGroup "Cover"][!HideMeterGroup "Control"][!HideMeterGroup "Details"][!HideMeterGroup "MinMax"][!ShowMeterGroup "Logo"][!Redraw]
IfAboveValue=0
IfAboveAction=[!ShowMeterGroup "Cover"][!ShowMeterGroup "Control"][!ShowMeterGroup "Details"][!ShowMeterGroup "MinMax"][!HideMeterGroup "Logo"][!Redraw][!CommandMeasure Transition "FadeIn('MeterCover, MeterCoverOverlay, MeterTitleShadow, MeterTitle, MeterArtistShadow, MeterArtist')]
UpdateDivider=100

[MeasureProgress]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasureArtist]
PlayerType=PROGRESS
UpdateDivider=100

[MeasurePosition]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasureArtist]
PlayerType=POSITION
UpdateDivider=100

[MeasureDuration]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasureArtist]
PlayerType=DURATION
UpdateDivider=100

[MeasureRepeat]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasureArtist]
PlayerType=REPEAT
IfEqualValue=0
IfEqualAction=[!SetOption MeterRepeat ImageName "#@#Images\Repeat.png"]
IfAboveValue=0
IfAboveAction=[!SetOption MeterRepeat ImageName "#@#Images\RepeatC.png"]
UpdateDivider=10

[MeasureShuffle]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasureArtist]
PlayerType=SHUFFLE
IfEqualValue=0
IfEqualAction=[!SetOption MeterShuffle ImageName "#@#Images\Shuffle.png"]
IfAboveValue=0
IfAboveAction=[!SetOption MeterShuffle ImageName "#@#Images\ShuffleC.png"]
UpdateDivider=10



;---- Meters ----

[MeterCase]
Meter=IMAGE
ImageName=#@#Images\Background.png
X=0
Y=0
AntiAlias=1
UpdateDivider=-1

[MeterCover]
Meter=IMAGE
MeasureName=MeasureCover
X=27
Y=7
W=37
H=37
ImageAlpha=255
Group=Cover
AntiAlias=1
UpdateDivider=100

[MeterCoverOverlay]
Meter=IMAGE
ImageName=#@#Images\Overlay.png
X=26
Y=6
W=39
H=39
ScaleMargins=3,3,3,3
ImageAlpha=255
Group=Cover
AntiAlias=1
UpdateDivider=-1



[MeterTriggerPlayer]
Meter=IMAGE
SolidColor=0,0,0,1
X=26
Y=3
W=278
H=45
MouseOverAction=[!CommandMeasure Transition "FadeIn('MeterAirPlay, MeterRepeat, MeterPrev, MeterPlayPause, MeterNext, MeterShuffle, MeterVolume, MeterSearch, MeterProgressBarBackground, MeterProgressBar, MeterPositionShadow, MeterPosition, MeterDurationShadow, MeterDuration')][!CommandMeasure Transition "FadeOut('MeterCover, MeterCoverOverlay, MeterTitleShadow, MeterTitle, MeterArtistShadow, MeterArtist')]
MouseLeaveAction=[!CommandMeasure Transition "FadeOut('MeterAirPlay, MeterRepeat, MeterPrev, MeterPlayPause, MeterNext, MeterShuffle, MeterVolume, MeterSearch, MeterProgressBarBackground, MeterProgressBar, MeterPositionShadow, MeterPosition, MeterDurationShadow, MeterDuration')][!CommandMeasure Transition "FadeIn('MeterCover, MeterCoverOverlay, MeterTitleShadow, MeterTitle, MeterArtistShadow, MeterArtist')]
UpdateDivider=-1



[MeterMaximize]
Meter=Image
ImageName=#@#Images\Maximize.png
X=9
Y=9
ImageAlpha=255
Group=MinMax
UpdateDivider=-1
LeftMouseUpAction=[!ActivateConfig "#CURRENTCONFIG#" "MiniPlayerCover.ini"]
;SolidColor=0,0,0,0

[MeterMinimize]
Meter=Image
ImageName=#@#Images\Minimize.png
X=9
Y=24
ImageAlpha=255
Group=MinMax
UpdateDivider=-1
LeftMouseUpAction=[!ActivateConfig "#CURRENTCONFIG#" "MiniPlayerShadow.ini"]
;SolidColor=0,0,0,0

[MeterAirPlay]
Meter=Image
ImageName=#@#Images\AirPlay.png
X=43
Y=20
ImageAlpha=255
Group=Control
UpdateDivider=-1
LeftMouseUpAction=[!ActivateConfig "#ROOTCONFIG#\Config"]
;SolidColor=0,0,0,0

[MeterRepeat]
Meter=Image
ImageName=#@#Images\Repeat.png
X=78
Y=20
ImageAlpha=255
Group=Control
DynamicVariables=1
UpdateDivider=10
LeftMouseUpAction=[!CommandMeasure "MeasureArtist" "SetRepeat -1"]
;SolidColor=0,0,0,0

[MeterPrev]
Meter=Image
ImageName=#@#Images\Prev.png
X=109
Y=20
LeftMouseUpAction=[!CommandMeasure "MeasureArtist" "Previous"]
ImageAlpha=255
Group=Control
UpdateDivider=-1
;SolidColor=0,0,0,0

[MeterPlayPause]
Meter=Image
ImageName=#@#Images\[MeasureState]
X=144
Y=16
LeftMouseUpAction=[!CommandMeasure "MeasureArtist" "PlayPause"]
Group=Control
ImageAlpha=255
DynamicVariables=1
UpdateDivider=10
;SolidColor=0,0,0,0

[MeterNext]
Meter=Image
ImageName=#@#Images\Next.png
X=178
Y=20
LeftMouseUpAction=[!CommandMeasure "MeasureArtist" "Next"]
ImageAlpha=255
Group=Control
UpdateDivider=-1
;SolidColor=0,0,0,0

[MeterShuffle]
Meter=Image
ImageName=#@#Images\Shuffle.png
X=211
Y=20
ImageAlpha=255
Group=Control
DynamicVariables=1
UpdateDivider=10
LeftMouseUpAction=[!CommandMeasure "MeasureArtist" "SetShuffle -1"]
;SolidColor=0,0,0,0

[MeterVolume]
Meter=Image
ImageName=#@#Images\Volume.png
X=243
Y=20
ImageAlpha=255
Group=Control
UpdateDivider=-1
LeftMouseUpAction=[!HideMeterGroup "Control"][!ShowMeterGroup "VolumeControl"]
;SolidColor=0,0,0,0

[MeterSearch]
Meter=Image
ImageName=#@#Images\Search.png
X=273
Y=20
ImageAlpha=255
Group=Control
UpdateDivider=-1
LeftMouseUpAction=["https://www.google.com/#q=[MeasureArtist] - [MeasureAlbum]"]
;SolidColor=0,0,0,0

[MeterProgressBarBackground]
Meter=Image
SolidColor=160,160,160,255
W=175
H=2
X=76
Y=42
Group=Progress
Hidden=#HiddenProgress#
UpdateDivider=-1

[MeterProgressBar]
Meter=Bar
MeasureName=MeasureProgress
BarOrientation=Horizontal
BarColor=0,110,220,255
SolidColor=160,160,160,0
W=175
H=2
X=76
Y=r
Group=Progress
Hidden=#HiddenProgress#
UpdateDivider=100

[MeterPositionShadow]
Meter=STRING
MeasureName=MeasurePosition
MeterStyle=StringStyleArtist
FontColor=255,255,255,255
W=30
H=13
X=43
Y=36
Text=%1
Group=Progress
Hidden=#HiddenProgress#
UpdateDivider=50
;SolidColor=255,0,255,100

[MeterPosition]
Meter=STRING
MeasureName=MeasurePosition
MeterStyle=StringStyleArtist
FontColor=32,32,32,255
W=30
H=13
X=43
Y=35
Text=%1
Group=Progress
Hidden=#HiddenProgress#
UpdateDivider=50
;SolidColor=255,0,255,100

[MeterDurationShadow]
Meter=STRING
MeasureName=MeasureDuration
MeterStyle=StringStyleArtist
FontColor=255,255,255,255
W=30
H=13
X=258
Y=36
Text=%1
Group=Progress
Hidden=#HiddenProgress#
UpdateDivider=100
;SolidColor=255,0,255,100

[MeterDuration]
Meter=STRING
MeasureName=MeasureDuration
MeterStyle=StringStyleArtist
FontColor=32,32,32,255
W=30
H=13
X=258
Y=35
Text=%1
Group=Progress
Hidden=#HiddenProgress#
UpdateDivider=100
;SolidColor=255,0,255,100



[MeterTitleShadow]
Meter=STRING
MeasureName=MeasureTitle
FontColor=255,255,255,255
X=73
Y=9
W=225
H=18
MeterStyle=StringStyleTrack
Text=%1
Group=Details
UpdateDivider=50
;SolidColor=255,0,255,100

[MeterTitle]
Meter=STRING
MeasureName=MeasureTitle
FontColor=0,0,0,255
X=73
Y=8
W=225
H=18
MeterStyle=StringStyleTrack
Text=%1
Group=Details
UpdateDivider=50
;SolidColor=255,0,255,100

[MeterArtistShadow]
Meter=STRING
MeasureName=MeasureArtist
MeasureName2=MeasureAlbum
FontColor=255,255,255,255
X=73
Y=28
W=225
H=18
MeterStyle=StringStyleArtist
Text=%1 - %2
Group=Details
UpdateDivider=50
;SolidColor=255,255,0,100

[MeterArtist]
Meter=STRING
MeasureName=MeasureArtist
MeasureName2=MeasureAlbum
FontColor=32,32,32,255
X=73
Y=27
W=225
H=18
MeterStyle=StringStyleArtist
Text=%1 - %2
Group=Details
UpdateDivider=50
;SolidColor=255,255,0,100



[MeterLogoBG]
Meter=IMAGE
ImageName=#@#Images\BackgroundBlank.png
X=1
Y=1
AntiAlias=1
ImageAlpha=255
Group=Logo
UpdateDivider=-1

[MeterLogo]
Meter=IMAGE
ImageName=#@#Images\apple.png
X=142
Y=12
AntiAlias=1
ImageAlpha=255
Group=Logo
UpdateDivider=-1



; -- Volume Control --
@IncludeVolumeControl=#@#Volume.inc
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 11192
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Itunes Player Skin

Post by balala »

tom0711 wrote: July 30th, 2020, 7:06 pm I have an itunes mini player skin and i want him to appear when i open itunes and disappear when i close it,is it possible to do such thing?
Yep, it is. Just add a [!HideFade] (or [!Hide], depending on your preferences) bang to the IfEqualAction option of the [MeasurePlayerStatus] measure and a [!ShowFade] (or [!Show] accordingly) bang to the IfAboveAction option of the same measure.
tom0711
Posts: 39
Joined: April 29th, 2020, 5:55 pm

Re: Itunes Player Skin

Post by tom0711 »

Thanks mate
User avatar
balala
Rainmeter Sage
Posts: 11192
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Itunes Player Skin

Post by balala »

tom0711 wrote: July 30th, 2020, 7:52 pmThanks mate
Did it work? i suppose (and hope) it did.
tom0711
Posts: 39
Joined: April 29th, 2020, 5:55 pm

Re: Itunes Player Skin

Post by tom0711 »

Yes it works perfectly thanks
User avatar
balala
Rainmeter Sage
Posts: 11192
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Itunes Player Skin

Post by balala »