It is currently April 20th, 2024, 9:43 am

Need help with my code.

Get help with creating, editing & fixing problems with skins
JGTElite
Posts: 5
Joined: December 8th, 2021, 10:29 pm

Need help with my code.

Post by JGTElite »

First i Need help with thisx problem. The Title text in playing now go out side of the skin. I want it to go inside the player and want it to go from left to right.
Image

And next question is can I make a command so I get a second page on my left bar?
SKIN INI FOLDER

Code: Select all

[Rainmeter]
Update=1000
RightMouseUpAction="#"
DynamicWindowSize=1

[Metadata]
Author=JGTELITE
Version=1.0.0
License=""
//////////////////////////////////////////////////////////////
[Variables]
@include=#@#Variables.ini
@include2=#@##NowPlayingSet#.ini

//////////////////////////////////////////////////////////////
[Background]
Meter=Shape
Shape=Rectangle 0,0,190,1080 | Fill Color 0,0,0 | Stroke Color 0,0,0,1
Shape2=Rectangle 190,0,3,1080 | Fill Color 255,0,0 | Stroke Color 0,0,0,1

//////////////////////////////////////////////////////////////
[TimeBG]
Meter=IMAGE
Group=TimeLeft
ImageName=#@#Images\time\Timebg.png

[MeasureTime]
Measure=Time
Group=TimeLeft
Format=%H:%M

[MeasureTimeampm]
Measure=Time
Group=TimeLeft
Format=%p
Substitute="PM":"pm","AM":"am"

[MeterTime]
MeasureName=MeasureTime
Meter=STRING
Group=TimeLeft
X=142
Y=16
FontColor=#Time_Color#
FontSize=30
FontFace=#Default_Fontface#
StringEffect=Shadow
FontEffectColor=255,0,0
StringAlign=Right
StringStyle=#Default_Style#
AntiAlias=#Default_Antialias#

[MeterTimeampm]
MeasureName=MeasureTimeampm
Meter=STRING
Group=TimeLeft
X=145
Y=46
FontColor=#Time_Color#
FontSize=#Time_Fontsize#
StringStyle=#Default_Style#
StringEffect=Shadow
FontEffectColor=255,0,0
StringAlign=LEFT
FontFace=#Default_Fontface#
AntiAlias=#Default_Antialias#

[MeterTimes]
MeasureName=MeasureTimeS
Meter=string
Group=TimeLeft
X=145
Y=21
FontColor=#Time_Color#
FontSize=#Time_Fontsize#
StringStyle=#Default_Style#
StringAlign=Left
StringStyle=#Default_Style#
AntiAlias=#Default_Antialias#
[Link 1]
Meter=String
Group=Toplinkleft
X=30
Y=100
Text="This PC"
Fontsize=#Link_Fontsize#
FontColor=#Link_Color#
StringAlign=Left
LeftMouseUpAction=Explorer Shell:::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
AntiAlias=#Default_Antialias#

[Link 2]
Meter=String
Group=Toplinkleft
X=r
Y=30r
Text="Documents"
Fontsize=#Link_Fontsize#
FontColor=#Link_Color#
StringAlign=Left
LeftMouseUpAction=!Execute ["C:\Users\%username%\Documents"]
AntiAlias=#Default_Antialias#

[Link 3]
Meter=String
Group=Toplinkleft
X=r
Y=30r
Text="Downloads"
Fontsize=#Link_Fontsize#
FontColor=#Link_Color#
StringAlign=Left
LeftMouseUpAction=["C:\Users\%username%\Downloads"]
AntiAlias=#Default_Antialias#

[Link 4]
Meter=String
Group=Toplinkleft
X=r
Y=30r
Text="Music"
Fontsize=#Link_Fontsize#
FontColor=#Link_Color#
StringAlign=Left
LeftMouseUpAction=!Execute ["C:\Users\%username%\Music"]
AntiAlias=#Default_Antialias#

[Link 5]
Meter=String
Group=Toplinkleft
X=r
Y=30r
Text="Pictures"
Fontsize=#Link_Fontsize#
FontColor=#Link_Color#
StringAlign=Left
LeftMouseUpAction=!Execute ["C:\Users\%username%\Pictures"]
AntiAlias=#Default_Antialias#

[Link 6]
Meter=String
Group=Toplinkleft
X=r
Y=30r
Text="Pictures"
Fontsize=#Link_Fontsize#
FontColor=#Link_Color#
StringAlign=Left
LeftMouseUpAction=!Execute ["C:\Users\%username%\Pictures"]
AntiAlias=#Default_Antialias#

[Link 7]
Meter=String
Group=Toplinkleft
X=r
Y=30r
Text="Pictures"
Fontsize=#Link_Fontsize#
FontColor=#Link_Color#
StringAlign=Left
LeftMouseUpAction=!Execute ["C:\Users\%username%\Pictures"]
AntiAlias=#Default_Antialias#

[Link 8]
Meter=String
Group=Toplinkleft
X=r
Y=30r
Text="Pictures"
Fontsize=#Link_Fontsize#
FontColor=#Link_Color#
StringAlign=Left
LeftMouseUpAction=!Execute ["C:\Users\%username%\Pictures"]
AntiAlias=#Default_Antialias#

[Link 9]
Meter=String
Group=Toplinkleft
X=r
Y=30r
Text="Pictures"
Fontsize=#Link_Fontsize#
FontColor=#Link_Color#
StringAlign=Left
LeftMouseUpAction=!Execute ["C:\Users\%username%\Pictures"]
AntiAlias=#Default_Antialias#

[Link 10]
Meter=String
Group=Toplinkleft
X=r
Y=30r
Text="Pictures"
Fontsize=#Link_Fontsize#
FontColor=#Link_Color#
StringAlign=Left
LeftMouseUpAction=!Execute ["C:\Users\%username%\Pictures"]
AntiAlias=#Default_Antialias#
//////////////////////////////////////////////////////////////
[DriveIcon]
Meter=IMAGE
Group=HDD
ImageName=#@#Images\HDD\Drive.png
X=6
Y=400
W=50
H=50
AntiAlias=#Default_Antialias#

LeftMouseDownAction=!Execute [!RainmeterRedraw]["C:\"]
[DriveCText]
Meter=STRING
Group=HDD
X=50r
Y=r
FontColor=#HDD_Color#
StringStyle=#Default_Style#
Fontsize=#HDD_Fontsize#
StringAlign=LEFT
Fontface=#Default_Fontface#
Text="   -=Disk C=-"
AntiAlias=#Default_Antialias#

[HDDCt]
MeasureName=mC
Meter=STRING
Group=HDD
X=r
Y=20r
FontColor=#HDD_Color#
StringStyle=#Default_Style#
Fontsize=#HDD_Fontsize#
StringAlign=LEFT
Fontface=#Default_Fontface#
Text=""
AntiAlias=#Default_Antialias#
NumOfDecimals=1
AutoScale=1
Postfix=""

[DriveCTotal]
MeasureName=Mse_TotalC
Meter=STRING
Group=HDD
X=50r
Y=r
FontColor=#HDD_Color#
StringStyle=#Default_Style#
Fontsize=#HDD_Fontsize#
StringAlign=LEFT
Fontface=#Default_Fontface#
Text=""
AntiAlias=#Default_Antialias#
NumOfDecimals=1
AutoScale=1

[DriveIcon2]
Meter=IMAGE
Group=HDD
ImageName=#@#Images\HDD\Drive.png
X=6
Y=450
W=50
H=50
AntiAlias=#Default_Antialias#
LeftMouseDownAction=!Execute [!RainmeterRedraw]["D:\"]

[DriveDText]
Meter=STRING
Group=HDD
X=50r
Y=r
FontColor=#HDD_Color#
StringStyle=#Default_Style#
Fontsize=#HDD_Fontsize#
StringAlign=LEFT
Fontface=#Default_Fontface#
Text="   -=Disk D=-"
AntiAlias=#Default_Antialias#

[HDDDt]
MeasureName=mD
Meter=STRING
Group=HDD
X=r
Y=20r
FontColor=#HDD_Color#
StringStyle=#Default_Style#
Fontsize=#HDD_Fontsize#
StringAlign=LEFT
Fontface=#Default_Fontface#
Text=""
AntiAlias=#Default_Antialias#
NumOfDecimals=1
AutoScale=1
Postfix=""

[DriveDTotal]
MeasureName=Mse_TotalD
Meter=STRING
Group=HDD
X=50r
Y=r
FontColor=#HDD_Color#
StringStyle=#Default_Style#
Fontsize=#HDD_Fontsize#
StringAlign=LEFT
Fontface=#Default_Fontface#
Text=""
AntiAlias=#Default_Antialias#
NumOfDecimals=1
AutoScale=1
Postfix=""

[DriveIcon3]
Meter=IMAGE
ImageName=#@#Images\HDD\Drive.png
Group=HDD
X=6
Y=500
W=50
H=50
AntiAlias=#Default_Antialias#
LeftMouseDownAction=!Execute [!RainmeterRedraw]["F:\"]

[DriveFText]
Meter=STRING
Group=HDD
X=50r
Y=r
FontColor=#HDD_Color#
StringStyle=#Default_Style#
Fontsize=#HDD_Fontsize#
StringAlign=LEFT
Fontface=#Default_Fontface#
Text="   -=Disk F=-"
AntiAlias=#Default_Antialias#

[HDDFt]
MeasureName=mF
Meter=STRING
Group=HDD
X=r
Y=20r
FontColor=#HDD_Color#
StringStyle=#Default_Style#
Fontsize=#HDD_Fontsize#
StringAlign=LEFT
Fontface=#Default_Fontface#
Text=""
AntiAlias=#Default_Antialias#
NumOfDecimals=1
AutoScale=1
Postfix=""

[DriveFTotal]
MeasureName=Mse_TotalF
Meter=STRING
Group=HDD
X=50r
Y=r
FontColor=#HDD_Color#
StringStyle=#Default_Style#
Fontsize=#HDD_Fontsize#
StringAlign=LEFT
Fontface=#Default_Fontface#
Text=""
AntiAlias=#Default_Antialias#
NumOfDecimals=1
AutoScale=1
Postfix=""


[BinIcon1]
Meter=IMAGE
Group=RecycleManager
ImageName=#@#Images\Recycle Bin\Bin.png
ToolTipText="RighClick Empty - DubbleLeft Open"
X=6
Y=580
W=50
H=50
AntiAlias=#Default_Antialias#
LeftMouseUpAction=Shell:::{645FF040-5081-101B-9F08-00AA002F954E}
RightMouseUpAction=!RainmeterPluginBang "mCount EmptyBin"

[BinIcon2]
Meter=IMAGE
Group=RecycleManager
ImageName=#@#Images\Recycle Bin\BinFull.png
ToolTipText="RighClick Empty - DubbleLeft Open"
X=r
Y=r
W=50
H=50
AntiAlias=#Default_Antialias#
LeftMouseUpAction=Shell:::{645FF040-5081-101B-9F08-00AA002F954E}
RightMouseUpAction=!RainmeterPluginBang "mCount EmptyBin"
Hidden=1

[IconBack1]
Meter=IMAGE
Group=RecycleManager
SolidColor=0, 0, 0, 1
X=r
Y=r
W=50
H=50

[Title1]
Meter=STRING
Group=RecycleManager
MeterStyle=sTitle
X=50r
Y=6r
FontColor=#Bin_Color#
FontFace=#Default_Fontface#
FontSize=#Bin_Fontsize#
StringAlign=LEFT
StringStyle=#Default_Style#
AntiAlias=#Default_Antialias#
Text="       -=Recycle Bin=-"

[TitleButton1]
Meter=IMAGE
Group=RecycleManager
SolidColor=0, 0, 0, 1
X=r
Y=r
W=50
H=14

[TitleButton2]
Meter=IMAGE
Group=RecycleManager
SolidColor=0, 0, 0, 1
X=r
Y=r
W=50
H=14
Hidden=1

[TitleButton3]
Meter=IMAGE
Group=RecycleManager
SolidColor=0, 0, 0, 1
X=r
Y=r
W=50
H=14
Hidden=1

[Separator1]
Meter=IMAGE
Group=RecycleManager
SolidColor=0, 128, 0
X=0r
Y=18r
H=1
W=120
Hidden=0

[Separator2]
Meter=IMAGE
Group=RecycleManager
SolidColor=255, 0, 0
X=r
Y=2r
H=1
W=120
Hidden=0

[Subtitle]
Meter=STRING
Group=RecycleManager
MeterStyle=sSubtitle
MeasureName=mCount
MeasureName2=mSize
X=105r
Y=2r
Text="#Items#"
FontColor=0, 255, 255
FontFace=Apple Garamond Light
FontSize=8
StringAlign=Right
AutoScale=1
AntiAlias=#Default_Antialias#
NumOfDecimals=0
DynamicVariables=1
[SkinContainer]
Meter=Shape
Group=NowPlaying
W=180
H=350
X=6
Y=650
Shape=Rectangle 0,0,180,350,#cornerRadius#,#cornerRadius# | Fill Color ffffff | StrokeWidth 0
DynamicVariables=#Player_Default_DynamicVariables#

[SkinBackground]
Meter=Shape
Group=NowPlaying
Container=SkinContainer
Shape=Rectangle 0,0,[SkinContainer:W],[SkinContainer:H] | Fill Color 121212 | StrokeWidth 0
DynamicVariables=#Player_Default_DynamicVariables#

[MainBackground]
Meter=Shape
Group=NowPlaying
Container=SkinContainer
Shape=Rectangle 0,0,[SkinContainer:W],[SkinContainer:H] | Fill LinearGradient BackgroundGrad | StrokeWidth 0
BackgroundGrad=270 | [MeasureAlbumArtColour] ; 0.0 | 111111 ; 1.0
DynamicVariables=#Player_Default_DynamicVariables#

[ArtworkBackgroundShadow]
Meter=Image
Group=NowPlaying
ImageName=#@#Images\SpotiPlayer\artworkbackgroundShadow.png
W=160
H=160
X=18
Y=676
DynamicVariables=#Player_Default_DynamicVariables#

[Artwork]
Meter=Image
Group=NowPlaying
ImageName=#cacheArtwork#
W=155
H=155
X=17
Y=675
DynamicVariables=#Player_Default_DynamicVariables#

[Title]
Meter=String
Group=NowPlaying
Container=TextGradientContainer
#MeasureName=MeasureTitle
Text=#cacheTitle#
X=15
Y=840
FontFace=#Player_Title_font#
FontSize=#Player_Title_Fontsize#
FontColor=#Player_Title_Color#
StringAlign=LeftTop
AntiAlias=#Default_Antialias#
ClipString=#Player_Default_ClipString#
DynamicVariables=#Player_Default_DynamicVariables#

[Artist]
Meter=String
Group=NowPlaying
Container=TextGradientContainer
#MeasureName=MeasureArtist
Text=#cacheArtist#
X=0r
Y=1R
FontFace=#Player_Artist_font#
FontSize=#Player_Artist_Fontsize#
FontColor=#Player_Artist_Color#
StringAlign=LeftTop
AntiAlias=#Default_Antialias#
AntiAlias=#Default_Antialias#
ClipString=#Player_Default_ClipString#
DynamicVariables=#Player_Default_DynamicVariables#

[ProgressBar]
Meter=Bar
Group=NowPlaying
MeasureName=MeasurePercentProgress
BarColor=#Player_ProgressBar_BarColor#
SolidColor=#Player_ProgressBar_SolidColor#
X=15
Y=10 R
W=155
H=3
BarOrientation=Horizontal
DynamicVariables=#Player_Default_DynamicVariables#

[ProgressInteract]
Meter=Shape
Group=NowPlaying
Shape=Rectangle [ProgressBar:X],[ProgressBar:Y],[ProgressBar:W],[ProgressBar:X] | Fill Color 255,255,255,0 | StrokeWidth 0
MouseActionCursor=0
# Hover actions modify the progressbar colour, increases the size of the handle, and shows the time popup group
MouseOverAction=[!SetOption ProgressBar BarColor "#Player_ProgressInteract_MouseOverAction_BarColor#"][!SetVariable progressHandleRad "6"][!ShowMeterGroup timePopup][!Update]
MouseLeaveAction=[!SetOption ProgressBar BarColor "#Player_ProgressInteract_MouseLeaveAction_BarColor#"][!SetVariable progressHandleRad "4"][!HideMeterGroup timePopup][!Update]
MouseScrollDownAction=[!CommandMeasure MeasureTitle "SetPosition -3"][!Update][!Delay 5][!Update]
MouseScrollUpAction=[!CommandMeasure MeasureTitle "SetPosition +3"][!Update][!Delay 5][!Update]
DynamicVariables=#Player_Default_DynamicVariables#

[TimePopupContainer]
# This sits before the popup text so we can keep the popup box variables current while keeping the text on top
Meter=Shape
Group=NowPlaying
Shape=Rectangle 0,[TimePopupText:Y],(891),[TimePopupText:H],3,3 | Fill Color ffffff | StrokeWidth 0
Hidden=1
DynamicVariables=#Player_Default_DynamicVariables#

[TimePopupText]
Meter=String
Group=NowPlaying
MeasureName=MeasureProgress
Text=%1
X=[MeasureProgressBarPosition]
Y=([ProgressBar:Y])
Padding=7,4,7,1
FontFace=#Player_Artist_font#
FontSize=#Player_Artist_Fontsize#
FontColor=#Player_Artist_Color#
StringAlign=CenterBottom
AntiAlias=#Default_Antialias#
Hidden=1
DynamicVariables=#Player_Default_DynamicVariables#

[ProgressTime]
Meter=String
Group=NowPlaying
MeasureName=MeasureProgress
Text=%1
X=15
Y=10 R
FontFace=#Player_ProgressTime_Fontface#
FontSize=#Player_ProgressTime_Fontsize#
FontColor=#Player_ProgressTime_Color#
StringAlign=LeftTop
AntiAlias=#Default_Antialias#
DynamicVariables=#Player_Default_DynamicVariables#

[Duration]
Meter=String
Group=NowPlaying
MeasureName=MeasureDuration
Text=%1
X=170
Y=0r
FontFace=#Player_Duration_Fontface#
FontSize=#Player_Duration_Fontsize#
FontColor=#Player_Duration_Color#
StringAlign=RightTop
AntiAlias=#Default_Antialias#
DynamicVariables=#Player_Default_DynamicVariables#

[Prev]
Meter=Image
Group=NowPlaying
ImageName=#@#Images\SpotiPlayer\prev.png
W=(18*#scale#)
X=40
Y=10R  

ImageTint=#Player_Prev_ImageTint_Color#
MouseActionCursor=0
MouseOverAction=[!SetOption #CURRENTSECTION# ImageTint "#Player_Prev_MouseOverAction_Color#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageTint "#Player_Prev_MouseLeaveAction_Color#"][!Update]
LeftMouseDownAction=[!SetOption #CURRENTSECTION# ImageTint "#Player_Prev_LeftMouseDownAction_Color#"][!CommandMeasure MeasureTitle "Previous"][!Update][!Delay 50][!Update]
LeftMouseUpAction=[!SetOption #CURRENTSECTION# ImageTint "#Player_Prev_LeftMouseUpAction_Color#"][!Update]
DynamicVariables=#Player_Default_DynamicVariables#

[PlayPause]
Meter=Image
Group=NowPlaying
ImageName=#@#Images\SpotiPlayer\play.png
W=(56*#scale#)
X= 20R
Y=-20R

ImageTint=#Player_PlayPause_ImageTint_Color#
MouseActionCursor=0
MouseOverAction=[!SetOption #CURRENTSECTION# ImageTint "#Player_PlayPause_MouseOverAction_Color#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageTint "#Player_PlayPause_MouseLeaveAction_Color#"][!Update]
LeftMouseDownAction=[!SetOption #CURRENTSECTION# ImageTint "#Player_PlayPause_LeftMouseDownAction_Color#"][!CommandMeasure MeasureTitle "PlayPause"][!Update][!Delay 50][!Update]
LeftMouseUpAction=[!SetOption #CURRENTSECTION# ImageTint "#Player_PlayPause_LeftMouseUpAction_Color#"][!Update]
DynamicVariables=#Player_Default_DynamicVariables#

[Next]
Meter=Image
Group=NowPlaying
ImageName=#@#Images\SpotiPlayer\next.png
W=(18*#scale#)
X=20R
Y=-20R 

ImageTint=#Player_Next_ImageTint_Color#
MouseActionCursor=0
MouseOverAction=[!SetOption #CURRENTSECTION# ImageTint "#Player_Next_MouseOverAction_Color#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageTint "#Player_Next_MouseLeaveAction_Color#"][!Update]
LeftMouseDownAction=[!SetOption #CURRENTSECTION# ImageTint "#Player_Next_LeftMouseDownAction_Color#"][!CommandMeasure MeasureTitle "Next"][!Update][!Delay 50][!Update]
LeftMouseUpAction=[!SetOption #CURRENTSECTION# ImageTint "#Player_Next_LeftMouseUpAction_Color#"][!Update]
DynamicVariables=#Player_Default_DynamicVariables#


[Volume]
Meter=Image
Group=NowPlaying
ImageName=#@#Images\SpotiPlayer\volume.png
X=15
Y=955
W=12
ImageTint=#Player_Volume_ImageTint_Color#
DynamicVariables=#Player_Default_DynamicVariables#

[VolumeHoverInteract]
Meter=Shape
Group=NowPlaying
Shape=Ellipse ([Volume:X]+([Volume:W]/2)),([Volume:Y]+([Volume:H]/2)),(16*#scale#) | Fill Color 255,255,255,0 | StrokeWidth 0
MouseActionCursor=0
MouseOverAction=[!ShowMeter VolumeHover][!SetOption Volume ImageTint #Player_Next_ImageTint_Color#][!SetVariable hoverMeter "Volume"][!SetVariable hoverRad 16][!ShowMeter HoverIndicator][!Update]
MouseLeaveAction=[!HideMeter HoverIndicator][!HideMeter VolumeHover][!SetOption Volume ImageTint aaaaaa][!Update]
LeftMouseUpAction=[!SetVariable toggleVol "(#toggleVol#+1)"][!Update]
DynamicVariables=#Player_Default_DynamicVariables#

[VolumeBar]
Meter=Bar
Group=master | volume
MeasureName=MeasureVolume
BarColor=#Player_Volume_ImageTint_Color#
SolidColor=ffffff22
X=10 R
Y=960
W=115
H=2
BarOrientation=Horizontal
Hidden=1
DynamicVariables=#Player_Default_DynamicVariables#

[VolumeInteract]
Meter=Shape
Group=master | volume
Shape=Rectangle [VolumeBar:X],([VolumeBar:Y]-(12*#scale#)),[VolumeBar:W],(25*#scale#) | Fill Color 255,255,255,0 | StrokeWidth 0
MouseActionCursor=0
# Hover actions modify the progressbar colour, increases the size of the handle, and shows the time popup group
MouseOverAction=[!SetOption VolumeBar BarColor "#Player_VolumeHoverInteract_MouseOverAction_Color#"][!SetVariable volumeHandleRad "6"][!ShowMeterGroup volPopup][!Update]
MouseLeaveAction=[!SetOption VolumeBar BarColor "#Player_VolumeInteract_MouseLeaveAction_Color#"][!SetVariable volumeHandleRad "4"][!HideMeterGroup volPopup][!Update]
LeftMouseDownAction=[!SetVariable newVol "($MouseX:%$-(33-(33*($MouseX:%$/100))))"][!SetVariable setVol "1"][!Update]
#LeftMouseDownAction=[!SetVariable newVol "$MouseX:%$"][!SetVariable setVol "1"][!Update]
MouseScrollDownAction=[!CommandMeasure MeasureTitle "SetVolume -5"][!Update][!Delay 50][!Update]
MouseScrollUpAction=[!CommandMeasure MeasureTitle "SetVolume +5"][!Update][!Delay 50][!Update]
Hidden=1
DynamicVariables=#Player_Default_DynamicVariables#


------------------------------------------------------------------------------------------

[PlayerManagement]
Measure=Calc
Formula=1
# Manage the play/pause button
IfCondition=MeasureState = 1
IfTrueAction=[!SetOption PlayPause ImageName "#@#Images\SpotiPlayer\pause.png"][!Update]
IfFalseAction=[!SetOption PlayPause ImageName "#@#Images\SpotiPlayer\play.png"][!Update]

[PlayerManageExtra]
Measure=String
String=[MeasureState].[MeasureStatus]
IfMatch="0.0"
IfMatchAction=[!SetVariable cacheTitle "#defaultTitle#"][!SetVariable cacheArtist "#defaultArtist#"][!SetVariable cacheArtwork "#defaultArtwork#"][!Update]
DynamicVariables=#Player_Default_DynamicVariables#

[PlayerManageExtra2]
Measure=String
String=[MeasureTitle][MeasureArtist]
Substitute="#cacheTitle##cacheArtist#":"1","#defaultTitle##defaultArtist#":"1"
IfMatchMode=0
IfMatch="1"
IfNotMatchAction=[!SetVariable cacheTitle "[MeasureTitle]"][!SetVariable cacheArtist "[MeasureArtist]"][!SetVariable cacheArtwork "[MeasureArtwork]"][!Update][!Delay 2000][!SetVariable cacheTitle "[MeasureTitle]"][!SetVariable cacheArtist "[MeasureArtist]"][!SetVariable cacheArtwork "[MeasureArtwork]"][!Update]
DynamicVariables=#Player_Default_DynamicVariables#

[SetVolume]
Measure=Calc
Formula=1
# Same deal here
IfCondition=#setVol#=1
IfTrueAction=[!CommandMeasure MeasureTitle "SetVolume #newVol#"][!SetVariable setVol 0][!Update][!Delay 50][!Update]
IfCondition2=#toggleVol#=0
IfTrueAction2=[!HideMeterGroup volume][!Update]
IfCondition3=#toggleVol#=1
IfTrueAction3=[!ShowMeterGroup volume][!Update]
IfCondition4=#toggleVol# > 1
IfTrueAction4=[!SetVariable toggleVol "0"][!Update]
DynamicVariables=#Player_Default_DynamicVariables#

[ChameleonAA]
Measure=Plugin
Plugin=Chameleon
Type=File
#Path=[MeasureArtwork]
Path=#cacheArtwork#
DynamicVariables=#Player_Default_DynamicVariables#

[MeasureAlbumArtColour]
Measure=Plugin
Plugin=Chameleon
Parent=ChameleonAA
Color=Average

[MeasureAlbumArtLum]
Measure=Plugin
Plugin=Chameleon
Parent=ChameleonAA
Color=Luminance
IfCondition=MeasureAlbumArtLum >= 0.7
IfTrueAction=[!ShowMeter BackgroundDarknessOverlay][!Update]
IfFalseAction=[!HideMeter BackgroundDarknessOverlay][!Update]
---------------
Variables.ini

Code: Select all

[Variables]
Language=English

;Drive
Drive1="C:"
Drive2="E:"
Drive3="F:"


Default_Color=192,20,58
Default_Fontface=LuzSans-Book
Default_Fontsize=9
Default_Style=NORMAL
Default_Antialias=1

Time_Color=255,255,255,240
Time_Fontsize=10

Link_Color=255,255,255
Link_Fontsize=10

HDD_Color=255,255,255
HDD_Fontsize=10

Bin_Color=255,255,255
Bin_Fontsize=8

Player_Default_DynamicVariables=1
Player_Default_ClipString=1
Player_Default_SolidColor=1
Player_Title_Color=255,255,150
Player_Title_Fontsize=12
Player_Title_font=LuzSans-Book

Player_Artist_Color=255,0,0
Player_Artist_Fontsize=10
Player_Artist_font=LuzSans-Book

Player_ProgressBar_BarColor= 235,255,112
Player_ProgressBar_SolidColor=255,0,251 

Player_ProgressInteract_MouseOverAction_BarColor=0,27,255
Player_ProgressInteract_MouseLeaveAction_BarColor= 124,255,0 

Player_ProgressTime_Fontface=LuzSans-Book
Player_ProgressTime_Fontsize=9
Player_ProgressTime_Color=242,149,243 

Player_Duration_Fontface=LuzSans-Book
Player_Duration_Fontsize=9
Player_Duration_Color=242,149,243

Player_Prev_ImageTint_Color=0,182,255
Player_Prev_MouseOverAction_Color=255,0,182
Player_Prev_MouseLeaveAction_Color=0,182,255
Player_Prev_LeftMouseDownAction_Color=0,27,255
Player_Prev_LeftMouseUpAction_Color=66,150,126 


Player_PlayPause_ImageTint_Color=0,182,255
Player_PlayPause_MouseOverAction_Color=255,0,182
Player_PlayPause_MouseLeaveAction_Color=0,182,255
Player_PlayPause_LeftMouseDownAction_Color=0,27,255
Player_PlayPause_LeftMouseUpAction_Color=66,150,126

Player_Next_ImageTint_Color=0,182,255
Player_Next_MouseOverAction_Color=255,0,182
Player_Next_MouseLeaveAction_Color=0,182,255
Player_Next_LeftMouseDownAction_Color=0,27,255
Player_Next_LeftMouseUpAction_Color=66,150,126 

Player_Volume_ImageTint_Color=0,182,255


Player_VolumeHoverInteract_MouseOverAction_Color=255,0,182
Player_VolumeInteract_MouseLeaveAction_Color=0,182,255




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


playerIndex=15 
playerName=WebNowPlaying
playerF=WebNowPlaying
version=2.0
scale=0.6
cornerRadius=(12*#scale#)
showWelcome=0 
accent=1DB954
NowPlayingSet=WebNowPlaying
defaultTitle=NowPlaying
defaultArtist=Ready for your music
defaultArtwork=#@#Images\SpotiPlayer\artworkBackground.png
toggleVol=0
progressHandleRad=4
volumeHandleRad=4

[mCount]
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=COUNT
Drives=ALL
UpdateDivider=3

[mSize]
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=SIZE
Drives=ALL
UpdateDivider=3

[mIcon]
Measure=Calc
Formula=mCount
IfAboveAction=!Execute [!RainmeterSetVariable Items "%1 items, %2B"][!RainmeterSetVariable BinState "Full"]
IfAboveValue=0
IfBelowAction=!Execute [!RainmeterSetVariable BinState "Empty"]
IfBelowValue=1
IfEqualAction=!Execute [!RainmeterSetVariable Items "No items"]
IfEqualValue=0

[[BinAction]
Measure=Calc
Formula=mCount
IfAboveAction=!Execute [!RainmeterHideMeter BinIcon1][!RainmeterShowMeter BinIcon2]
IfAboveValue=0
IfEqualAction=!Execute [!RainmeterHideMeter BinIcon2][!RainmeterShowMeter BinIcon1]
IfEqualValue=0

[Mse_TotalC]
Measure=FreeDiskSpace
Drive=C:
Total=1
[Mse_TotalD]
Measure=FreeDiskSpace
Drive=D:
Total=1
[Mse_TotalF]
Measure=FreeDiskSpace
Drive=F:
Total=1

[Mse_FreeC]
Measure=FreeDiskSpace
Drive=C:
[Mse_FreeD]
Measure=FreeDiskSpace
Drive=D:
[Mse_FreeF]
Measure=FreeDiskSpace
Drive=F:

[Mse_UsedC]
Measure=FreeDiskSpace
Drive=C:
InvertMeasure=1
[Mse_UsedD]
Measure=FreeDiskSpace
Drive=D:
InvertMeasure=1
[Mse_UsedF]
Measure=FreeDiskSpace
Drive=F:
InvertMeasure=1

[mC]
Measure=FreeDiskSpace
Drive="C:"
[mD]
Measure=FreeDiskSpace
Drive="D:"
[mF]
Measure=FreeDiskSpace
Drive="F:"
User avatar
ikarus1969
Posts: 571
Joined: February 28th, 2011, 3:20 pm
Location: Vienna, Austria

Re: Need help with my code.

Post by ikarus1969 »

JGTElite wrote: December 16th, 2021, 5:43 am First i Need help with thisx problem. The Title text in playing now go out side of the skin. I want it to go inside the player and want it to go from left to right.
I adapted 2 meters and added width-information to them. Please try it:

Code: Select all

[Title]
Meter=String
Group=NowPlaying
Container=TextGradientContainer
#MeasureName=MeasureTitle
Text=#cacheTitle#
X=15
Y=840
FontFace=#Player_Title_font#
FontSize=#Player_Title_Fontsize#
FontColor=#Player_Title_Color#
StringAlign=LeftTop
AntiAlias=#Default_Antialias#
ClipStringW=([Artwork:W] + 4)
ClipString=2
DynamicVariables=#Player_Default_DynamicVariables#

[Artist]
Meter=String
Group=NowPlaying
Container=TextGradientContainer
#MeasureName=MeasureArtist
Text=#cacheArtist#
X=0r
Y=1R
W=([Artwork:W] + 4)
FontFace=#Player_Artist_font#
FontSize=#Player_Artist_Fontsize#
FontColor=#Player_Artist_Color#
StringAlign=LeftTop
AntiAlias=#Default_Antialias#
AntiAlias=#Default_Antialias#
ClipString=#Player_Default_ClipString#
DynamicVariables=#Player_Default_DynamicVariables#
User avatar
ikarus1969
Posts: 571
Joined: February 28th, 2011, 3:20 pm
Location: Vienna, Austria

Re: Need help with my code.

Post by ikarus1969 »

JGTElite wrote: December 16th, 2021, 5:43 am And next question is can I make a command so I get a second page on my left bar?
I don't know what you mean with second page?
JGTElite
Posts: 5
Joined: December 8th, 2021, 10:29 pm

Re: Need help with my code.

Post by JGTElite »

JGTElite
Posts: 5
Joined: December 8th, 2021, 10:29 pm

Re: Need help with my code.

Post by JGTElite »

ikarus1969 wrote: December 16th, 2021, 6:06 am I adapted 2 meters and added width-information to them. Please try it:

Code: Select all

[Title]
Meter=String
Group=NowPlaying
Container=TextGradientContainer
#MeasureName=MeasureTitle
Text=#cacheTitle#
X=15
Y=840
FontFace=#Player_Title_font#
FontSize=#Player_Title_Fontsize#
FontColor=#Player_Title_Color#
StringAlign=LeftTop
AntiAlias=#Default_Antialias#
ClipStringW=([Artwork:W] + 4)
ClipString=2
DynamicVariables=#Player_Default_DynamicVariables#

[Artist]
Meter=String
Group=NowPlaying
Container=TextGradientContainer
#MeasureName=MeasureArtist
Text=#cacheArtist#
X=0r
Y=1R
W=([Artwork:W] + 4)
FontFace=#Player_Artist_font#
FontSize=#Player_Artist_Fontsize#
FontColor=#Player_Artist_Color#
StringAlign=LeftTop
AntiAlias=#Default_Antialias#
AntiAlias=#Default_Antialias#
ClipString=#Player_Default_ClipString#
DynamicVariables=#Player_Default_DynamicVariables#
Thanks that works :D Only need to change some stuff at the bottom where they are :D Sorry for the really bad English :P
User avatar
balala
Rainmeter Sage
Posts: 16148
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Need help with my code.

Post by balala »

JGTElite wrote: December 16th, 2021, 6:29 am Thanks that works :D Only need to change some stuff at the bottom where they are :D Sorry for the really bad English :P
Does it? Are you sure? Because there are some extra, not-needed characters in the MeasureName options of the [Title] and [Artist] meters, which are preventing the meters to show what the appropriate measures are returning. Those characters are there in both codes, the original and ikarus1969's one. I'm talking about the # characters on the beginning of those options: #MeasureName=MeasureTitle in the [Title] meter and respectively #MeasureName=MeasureArist in the [Artist] meter. Recommend to remove them.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5398
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Need help with my code.

Post by eclectic-tech »

JGTElite wrote:And next question is can I make a command so I get a second page on my left bar?
You currently have all meters assigned to several different groups which makes it easy to add them to more groups.
To have a second 'page' add a new group name to all of the current sections of code you want to switch for other items, let's call the new group name "Page0". You already have a group named 'Toplinkleft' so let's create pages for these.
To switch all of your current links first you need to add them to the new group name by adding to your Group tag:
Group=Toplinkleft | Page0. Now you can hide/show them using !HideMeterGroup/!ShowMeterGroup bangs.

The easiest way to create pages of items is by creating include files with the different sets of sections.
Create a file in @Resources, name it "Page1.inc" and put the second set of meters in this file.
Make sure the meters have unique section names, give them all group name:
Group=Page1, and set them as Hidden=1.

In your main file create a new variable Page=0.
Add an @include to include your second page of meters; @includePage1="#@#page1.inc"
Then create a meter to switch between 'pages'. Make sure you add DynamicVariables=1 to the meter.

Code: Select all

LeftMouseUpAction=[!HideMeterGroup "Page[#Page]"][!SetVariable Page (1-#Page#)][!ShowMeterGroup "Page[#Page]"][!Redraw]
DynamicVariables=1

@includePage1="#@#page1.inc"
This will let you switch between the 2 sets of pages.
To switch between more than 2 pages, you could change the formula to modulo to handle as many pages as you want:
[!SetVariable Page "((#Page#+1)%{NumberofPages-1})"]

"{NumberofPages-1}" would be 1 less than the total pages.
pages2.gif
Feel free to ask questions.
You do not have the required permissions to view the files attached to this post.
JGTElite
Posts: 5
Joined: December 8th, 2021, 10:29 pm

Re: Need help with my code.

Post by JGTElite »

balala wrote: December 16th, 2021, 7:52 am Does it? Are you sure? Because there are some extra, not-needed characters in the MeasureName options of the [Title] and [Artist] meters, which are preventing the meters to show what the appropriate measures are returning. Those characters are there in both codes, the original and ikarus1969's one. I'm talking about the # characters on the beginning of those options: #MeasureName=MeasureTitle in the [Title] meter and respectively #MeasureName=MeasureArist in the [Artist] meter. Recommend to remove them.
thanks. I will look it up and changes that code I get wrong.
JGTElite
Posts: 5
Joined: December 8th, 2021, 10:29 pm

Re: Need help with my code.

Post by JGTElite »

eclectic-tech wrote: December 16th, 2021, 3:18 pm You currently have all meters assigned to several different groups which makes it easy to add them to more groups.
To have a second 'page' add a new group name to all of the current sections of code you want to switch for other items, let's call the new group name "Page0". You already have a group named 'Toplinkleft' so let's create pages for these.
To switch all of your current links first you need to add them to the new group name by adding to your Group tag:
Group=Toplinkleft | Page0. Now you can hide/show them using !HideMeterGroup/!ShowMeterGroup bangs.

The easiest way to create pages of items is by creating include files with the different sets of sections.
Create a file in @Resources, name it "Page1.inc" and put the second set of meters in this file.
Make sure the meters have unique section names, give them all group name:
Group=Page1, and set them as Hidden=1.

In your main file create a new variable Page=0.
Add an @include to include your second page of meters; @includePage1="#@#page1.inc"
Then create a meter to switch between 'pages'. Make sure you add DynamicVariables=1 to the meter.

Code: Select all

LeftMouseUpAction=[!HideMeterGroup "Page[#Page]"][!SetVariable Page (1-#Page#)][!ShowMeterGroup "Page[#Page]"][!Redraw]
DynamicVariables=1

@includePage1="#@#page1.inc"
This will let you switch between the 2 sets of pages.
To switch between more than 2 pages, you could change the formula to modulo to handle as many pages as you want:
[!SetVariable Page "((#Page#+1)%{NumberofPages-1})"]

"{NumberofPages-1}" would be 1 less than the total pages.
pages2.gif
Feel free to ask questions.

Thanks :D this willhelp a lot and I will write if I get into some problems :)