Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 326

Change widget position depending on the day of the week

$
0
0
I have a widget for Rainmeter that shows the days of the week.
But each day of the week has a different number of letters, so the word keeps moving out and I have to correct it.
I need to make it so that each day of the week has a different position.
I tried to do it myself, but it didn't work out. (Sorry if it's not clear, I'm using google translator.)

Code:

[Rainmeter]Update=1000Author=Connect-RBackgroundMode=2SolidColor=0,0,0,1DynamicWindowSize=1AccurateText=1MouseScrollUpAction=[!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#.incScale=1.66;-------------------------------------------------------------; Measures;-------------------------------------------------------------[MeasureTime]Measure=TimeFormat="%#Format#:%M"[MeasureAmPm]Measure=TimeFormat="%p"[MeasureDay]Measure=TimeFormat=%A[MeasureDate]Measure=TimeFormat=%d  %B,  %Y.Substitute=#Date#;-------------------------------------------------------------; Meters;-------------------------------------------------------------[Meter24hClock]Meter=StringMeasureName=MeasureTimeStringAlign=CenterStringCase=UpperFontFace=QuicksandFontColor=#TextColor#FontSize=(14*#Scale#)X=(340*#Scale#)Y=(110*#Scale#)Text="- %1 -"AntiAlias=1Hidden=#Hidden#[Meter12hClock]Meter=StringMeasureName=MeasureTimeMeasureName2=MeasureAmPmStringAlign=CenterStringCase=UpperFontFace=QuicksandFontColor=#TextColor#FontSize=(14*#Scale#)X=(340*#Scale#)Y=(120*#Scale#)Text="- %1 %2 -"AntiAlias=1Hidden=#Hidden2#; Метки для каждого дня недели[MeterMonday]Meter=StringMeasureName=MeasureDayText="MONDAY"X=(320*#Scale#)Y=(0*#Scale#)FontFace=AnuratiFontSize=(40*#Scale#)FontColor=#TextColor#StringAlign=LeftStringCase=UpperAntiAlias=1Hidden=1IfMatch="Monday"IfMatchAction=[!SetOption MeterMonday Hidden 0][!UpdateMeter *][!Redraw]IfNotMatchAction=[!SetOption MeterMonday Hidden 1][!UpdateMeter *][!Redraw]DynamicVariables=1[MeterTuesday]Meter=StringMeasureName=MeasureDayText="TUESDAY"X=(310*#Scale#)Y=(0*#Scale#)FontFace=AnuratiFontSize=(40*#Scale#)FontColor=#TextColor#StringAlign=LeftStringCase=UpperAntiAlias=1Hidden=1IfMatch="Tuesday"IfMatchAction=[!SetOption MeterTuesday Hidden 0][!UpdateMeter *][!Redraw]IfNotMatchAction=[!SetOption MeterTuesday Hidden 1][!UpdateMeter *][!Redraw]DynamicVariables=1[MeterWednesday]Meter=StringMeasureName=MeasureDayText="WEDNESDAY"X=(280*#Scale#)Y=(0*#Scale#)FontFace=AnuratiFontSize=(40*#Scale#)FontColor=#TextColor#StringAlign=LeftStringCase=UpperAntiAlias=1Hidden=1IfMatch="Wednesday"IfMatchAction=[!SetOption MeterWednesday Hidden 0][!UpdateMeter *][!Redraw]IfNotMatchAction=[!SetOption MeterWednesday Hidden 1][!UpdateMeter *][!Redraw]DynamicVariables=1[MeterThursday]Meter=StringMeasureName=MeasureDayText="THURSDAY"X=(310*#Scale#)Y=(0*#Scale#)FontFace=AnuratiFontSize=(40*#Scale#)FontColor=#TextColor#StringAlign=LeftStringCase=UpperAntiAlias=1Hidden=1IfMatch="Thursday"IfMatchAction=[!SetOption MeterThursday Hidden 0][!UpdateMeter *][!Redraw]IfNotMatchAction=[!SetOption MeterThursday Hidden 1][!UpdateMeter *][!Redraw]DynamicVariables=1[MeterFriday]Meter=StringMeasureName=MeasureDayText="FRIDAY"X=(330*#Scale#)Y=(0*#Scale#)FontFace=AnuratiFontSize=(40*#Scale#)FontColor=#TextColor#StringAlign=LeftStringCase=UpperAntiAlias=1Hidden=1IfMatch="Friday"IfMatchAction=[!SetOption MeterFriday Hidden 0][!UpdateMeter *][!Redraw]IfNotMatchAction=[!SetOption MeterFriday Hidden 1][!UpdateMeter *][!Redraw]DynamicVariables=1[MeterSaturday]Meter=StringMeasureName=MeasureDayText="SATURDAY"X=(290*#Scale#)Y=(0*#Scale#)FontFace=AnuratiFontSize=(40*#Scale#)FontColor=#TextColor#StringAlign=LeftStringCase=UpperAntiAlias=1Hidden=1IfMatch="Saturday"IfMatchAction=[!SetOption MeterSaturday Hidden 0][!UpdateMeter *][!Redraw]IfNotMatchAction=[!SetOption MeterSaturday Hidden 1][!UpdateMeter *][!Redraw]DynamicVariables=1[MeterSunday]Meter=StringMeasureName=MeasureDayText="SUNDAY"X=(320*#Scale#)Y=(0*#Scale#)FontFace=AnuratiFontSize=(40*#Scale#)FontColor=#TextColor#StringAlign=LeftStringCase=UpperAntiAlias=1Hidden=1IfMatch="Sunday"IfMatchAction=[!SetOption MeterSunday Hidden 0][!UpdateMeter *][!Redraw]IfNotMatchAction=[!SetOption MeterSunday Hidden 1][!UpdateMeter *][!Redraw]DynamicVariables=1[MeterDate]Meter=StringMeasureName=MeasureDateStringAlign=CenterStringCase=UpperFontFace=QuicksandFontColor=#TextColor#FontSize=(14*#Scale#)X=(340*#Scale#)Y=(75*#Scale#)Text="%1"AntiAlias=1

Statistics: Posted by IvanAstran — 52 minutes ago — Replies 0 — Views 15



Viewing all articles
Browse latest Browse all 326

Trending Articles