It is currently July 20th, 2024, 9:12 pm

Mond Skin clock, date, video player and bin out of alignment

Get help with creating, editing & fixing problems with skins
Alux7L
Posts: 3
Joined: November 7th, 2023, 12:17 am

Mond Skin clock, date, video player and bin out of alignment

Post by Alux7L »

Hi Everyone,

I'm having trouble with my mond skin not centering when I switch between my laptop, and my monitor screen. I've been manually dragging the clock and player everytime I switch and I was just wondering if there was a way to have it automatically adjust to the new screen sizes.

I tried looking at some forums and their adjustments didn't seem to work.

First time posting so please let me know if I need to add other stuff!

Here is the code for the clock

Code: Select all

[Rainmeter]
Update=1000
Author=Connect-R
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1
MouseScrollUpAction=[!SetVariable Scale "(#Scale#+#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#+#ScrollMouseIncrement#)"][!Refresh] 
MouseScrollDownAction=[!SetVariable Scale "(#Scale#-#ScrollMouseIncrement# < 0.5 ? 0.5 : #Scale#-#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#-#ScrollMouseIncrement# < 0.5 ? 0.5 : #Scale#-#ScrollMouseIncrement#)"][!Refresh] 
LeftMouseDoubleClickAction=!ToggleConfig "Mond\Settings" "Settings.ini"

[Variables]
@include=#@#Variables.inc
@include2=#@#Language\#Language#.inc
Scale=1.06

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

[MeasureTime]
Measure=Time
Format="%#Format#:%M"

[MeasureAmPm]
Measure=Time
Format="%p"

[MeasureDay]
Measure=Time
Format=%A
Substitute=#Date#

[MeasureDate]
Measure=Time
Format=%d  %B,  %Y.
Substitute=#Date#

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

[Meter24hClock]
Meter=String
MeasureName=MeasureTime
StringAlign=Center
StringCase=Upper
FontFace=Quicksand
FontColor=#TextColor#
FontSize=(14*#Scale#)
X=(340*#Scale#)
Y=(120*#Scale#)
Text="- %1 -"
AntiAlias=1
Hidden=#Hidden#

[Meter12hClock]
Meter=String
MeasureName=MeasureTime
MeasureName2=MeasureAmPm
StringAlign=Center
StringCase=Upper
FontFace=Quicksand
FontColor=#TextColor#
FontSize=(14*#Scale#)
X=(340*#Scale#)
Y=(120*#Scale#)
Text="- %1 %2 -"
AntiAlias=1
Hidden=#Hidden2#

[MeterDay]
Meter=String
MeasureName=MeasureDay
StringAlign=Center
StringCase=Upper
FontFace=Anurati
FontColor=#TextColor#
FontSize=(40*#Scale#)
X=(340*#Scale#)
Y=(0*#Scale#)
Text="%1"
InlineSetting=CharacterSpacing | 10 | 10
AntiAlias=1
DynamicVariables=1

[MeterDate]
Meter=String
MeasureName=MeasureDate
StringAlign=Center
StringCase=Upper
FontFace=Quicksand
FontColor=#TextColor#
FontSize=(14*#Scale#)
X=(340*#Scale#)
Y=(75*#Scale#)
Text="%1"
AntiAlias=1

Code: Select all

[Rainmeter]
Update=100
Author=Connect-R
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1
MouseScrollUpAction=[!SetVariable Scale "(#Scale#+#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#+#ScrollMouseIncrement#)"][!Refresh]
MouseScrollDownAction=[!SetVariable Scale "(#Scale#-#ScrollMouseIncrement# < 1 ? 1 : #Scale#-#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#-#ScrollMouseIncrement# < 1 ? 1 : #Scale#-#ScrollMouseIncrement#)"][!Refresh]

[Variables]
@include=#@#Variables.inc
Scale=2

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

[MeasureArtist]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=ARTIST
Substitue="":""

[MeasureTitle]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=TITLE
Substitue="":""

[MeasureAlbum]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=ALBUM
Substitue="":""

[MeasureProgress]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=PROGRESS

[MeasureDuration]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=DURATION

[MeasurePosition]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=POSITION

[MeasureStateButton]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=STATE
Substitute="0":"#@#Play.png","1":"#@#Pause.png","2":"#@#Play.png"

[MeasureMinutesRemaining]
Measure=Calc
Formula=Trunc((MeasureDuration - MeasurePosition)/60)
RegExpSubstitute=1
Substitute="^(.)$":"0\1"

[MeasureSecondsRemaining]
Measure=Calc
Formula=((MeasureDuration - MeasurePosition) % 60)
RegExpSubstitute=1
Substitute="^(.)$":"0\1"

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

[MeterArtist]
Meter=String
MeasureName=MeasureArtist
StringAlign=Center
StringCase=Upper
FontFace=Aquatico
FontColor=#Color1#
FontSize=(4*#Scale#)
X=(95*#Scale#)
Y=(15*#Scale#)
Text="%1"
AntiAlias=1

[MeterTitle]
Meter=String
MeasureName=MeasureTitle
StringAlign=Center
StringCase=Upper
FontFace=Aquatico
FontColor=#Color1#
FontSize=(4*#Scale#)
X=(95*#Scale#)
Y=(8*#Scale#)r
Text="%1"
AntiAlias=1

[MeterPosition]
Meter=String
MeasureName=MeasurePosition
StringAlign=Center
FontFace=Quicksand
FontColor=#TextColor#
FontSize=(4*#Scale#)
X=(10*#Scale#)
Y=(2.5*#Scale#)
AntiAlias=1

[MeterDuration]
Meter=String
MeasureName=MeasureDuration
StringAlign=Center
FontFace=Quicksand
FontColor=#Color1#
FontSize=(4*#Scale#)
X=(185*#Scale#)
Y=(2.5*#Scale#)
AntiAlias=1

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

[MeterBar]
Meter=Shape
X=(23*#Scale#)
Y=(5*#Scale#)
Shape=Rectangle 0,0,(150*#Scale#),(1*#Scale#),0 | Fill Color #Color1#,30 | StrokeWidth 0
Shape2=Rectangle 0,0,([MeasureProgress]*1.5*#Scale#),(1*#Scale#),0 | Fill Color #Color1# | StrokeWidth 0
Shape3=Ellipse ([MeasureProgress]*1.5*#Scale#),(0.5*#Scale#),(1.2*#Scale#) |Fill Color #Color1# | StrokeWidth 0
Shape4=Ellipse ([MeasureProgress]*1.5*#Scale#),(0.5*#Scale#),(3.4*#Scale#) |Fill Color #Color1#,50 | StrokeWidth 0
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure "MeasureProgress" "SetPosition $MouseX:%$"]

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

[MeterPrevious]
Meter=Image
ImageName=#@#Previous.png
X=(69*#Scale#)
Y=(35*#Scale#)
W=(13*#Scale#)
AntiAlias=1
ImageTint=#Color2#
SolidColor=0,0,0,1
LeftMouseUpAction=[!PluginBang "MeasureStateButton Previous"]

[MeterPlayPause]
Meter=Image
ImageName=[MeasureStateButton]
X=(20*#Scale#)r
Y=(0*#Scale#)r
W=(13*#Scale#)
AntiAlias=1
SolidColor=0,0,0,1
ImageTint=#Color2#
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure "MeasureStateButton" "PlayPause"]

[MeterNext]
Meter=Image
ImageName=#@#Next.png
X=(20*#Scale#)r
Y=(0*#Scale#)r
W=(13*#Scale#)
AntiAlias=1
ImageTint=#Color2#
SolidColor=0,0,0,1
LeftMouseUpAction=[!PluginBang "MeasureStateButton Next"]
Last edited by Brian on November 7th, 2023, 6:46 am, edited 1 time in total.
Reason: Fixed [code] tags.
User avatar
Yincognito
Rainmeter Sage
Posts: 7752
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Mond Skin clock, date, video player and bin out of alignment

Post by Yincognito »

Alux7L wrote: November 7th, 2023, 12:27 am Hi Everyone,

I'm having trouble with my mond skin not centering when I switch between my laptop, and my monitor screen. I've been manually dragging the clock and player everytime I switch and I was just wondering if there was a way to have it automatically adjust to the new screen sizes.
I'm not using multiple monitors so I can't test, but usually, you'd choose the monitor the skin is displayed onto from the Settings tab (if needed), and / or use the !SetWindowPosition bang at skin refresh time to center the skin on the desired monitor, something along the lines of:

Code: Select all

[Rainmeter]
...
OnRefreshAction=[!SetWindowPosition "50%" "50%" "50%" "50%"]
Or, you could manually change the equivalent options in the Rainmeter.ini file (typically located in the C:\Users\[User]\AppData\Roaming\Rainmeter folder) for a one time change.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
Alux7L
Posts: 3
Joined: November 7th, 2023, 12:17 am

Re: Mond Skin clock, date, video player and bin out of alignment

Post by Alux7L »

Yincognito wrote: November 7th, 2023, 4:48 am I'm not using multiple monitors so I can't test, but usually, you'd choose the monitor the skin is displayed onto from the Settings tab (if needed), and / or use the !SetWindowPosition bang at skin refresh time to center the skin on the desired monitor, something along the lines of:

Code: Select all

[Rainmeter]
...
OnRefreshAction=[!SetWindowPosition "50%" "50%" "50%" "50%"]
Or, you could manually change the equivalent options in the Rainmeter.ini file (typically located in the C:\Users\[User]\AppData\Roaming\Rainmeter folder) for a one time change.
Thanks for the response! However, I can't seem to get the [Rainmeter] ... OnRefreshAction=[!SetWindowPosition "50%" "50%" "50%" "50%"] code to work? I tried pasting it at the bottom of the clock code but somehow ti doesn't seem to work. I also am unsure what you mean by having multiple desktop settings? I tried saving a layout but don't understand how to get that to load

Thanks,
Alex Luk
ZXCVBOT

Re: Mond Skin clock, date, video player and bin out of alignment

Post by ZXCVBOT »

You don't actually have to copy "..." part:

Code: Select all

[Rainmeter]
<SomeCodeHere-Don'tCopyThisLine-CopyTheBleowLine>
OnRefreshAction=[!SetWindowPosition "50%" "50%" "50%" "50%"]
This means that you have to put the OnRefreshAction line wherever "[Rainmeter]" is written, most probably at the top.

As for saved layouts, you can load them by:
Clicking "Layouts" tab in Rainmeter Window → Select the Saved Layout's Name → Click Load.
Alux7L
Posts: 3
Joined: November 7th, 2023, 12:17 am

Re: Mond Skin clock, date, video player and bin out of alignment

Post by Alux7L »

Ahh it seems to be working now silly me! Thank You
ZXCVBOT

Re: Mond Skin clock, date, video player and bin out of alignment

Post by ZXCVBOT »

You're welcome :welcome: