It is currently December 1st, 2020, 6:17 pm

How to show tomorrow and day after tomorrow 's week ?

Help with creating, editing & fixing problems with skins
User avatar
cackling
Posts: 2
Joined: January 17th, 2010, 5:44 am

How to show tomorrow and day after tomorrow 's week ?

Post by cackling »

i write this code but rainmeter doesn't show what i want ! who can help me ? my rainmeter version is 1.2 rev357(32bit)
code:

Code: Select all

[Rainmeter]
Author=Fly
AppVersion=1001000

[Variables]
Y0=0
Y1=20
Y2=40
Y3=60
X0=0

[MeterStyle]
FontColor=FFFFFFF0
FontFace=Verdana
FontSize=10
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=000000F0
AntiAlias=1

[MeasureWeek]
Measure=Time
Format="%A"
Substitute="Sunday":"0","Monday":"1","Tuesday":"2","Wednesday":"3","Thursday":"4","Friday":"5","Saturday":"6"

[MeasureWeek0]
MeasureName=MeasureWeek
IfEqualValue=0
IfEqualAction=!execute [!RainmeterHideMeter MeterWeek5][!RainmeterHideMeter MeterWeek6][!RainmeterHideMeter MeterWeek0][!RainmeterShowMeter MeterWeek1][!RainmeterShowMeter MeterWeek2][!RainmeterShowMeter MeterWeek3][!RainmeterShowMeter MeterWeek4][!RainmeterMoveMeter #X0# #Y0# MeterWeek1[!RainmeterMoveMeter #X0# #Y1# MeterWeek2][!RainmeterMoveMeter #X0# #Y2# MeterWeek3][!RainmeterMoveMeter #X0# #Y3# MeterWeek4]

[MeasureWeek1]
MeasureName=MeasureWeek
IfEqualValue=1
IfEqualAction=!execute [!RainmeterHideMeter MeterWeek6][!RainmeterHideMeter MeterWeek0][!RainmeterHideMeter MeterWeek1][!RainmeterShowMeter MeterWeek2][!RainmeterShowMeter MeterWeek3][!RainmeterShowMeter MeterWeek4][!RainmeterShowMeter MeterWeek5][!RainmeterMoveMeter #X0# #Y0# MeterWeek2][!RainmeterMoveMeter #X0# #Y1# MeterWeek3][!RainmeterMoveMeter #X0# #Y2# MeterWeek4][!RainmeterMoveMeter #X0# #Y3# MeterWeek5]

[MeasureWeek2]
MeasureName=MeasureWeek
IfEqualValue=2
IfEqualAction=!execute [!RainmeterHideMeter MeterWeek0][!RainmeterHideMeter MeterWeek1][!RainmeterHideMeter MeterWeek2][!RainmeterShowMeter MeterWeek3][!RainmeterShowMeter MeterWeek4][!RainmeterShowMeter MeterWeek5][!RainmeterShowMeter MeterWeek6][!RainmeterMoveMeter #X0# #Y0# MeterWeek3][!RainmeterMoveMeter #X0# #Y1# MeterWeek4][!RainmeterMoveMeter #X0# #Y2# MeterWeek5][!RainmeterMoveMeter #X0# #Y3# MeterWeek6]

[MeasureWeek3]
MeasureName=MeasureWeek
IfEqualValue=3
IfEqualAction=!execute [!RainmeterHideMeter MeterWeek1][!RainmeterHideMeter MeterWeek2][!RainmeterHideMeter MeterWeek3][!RainmeterShowMeter MeterWeek4][!RainmeterShowMeter MeterWeek5][!RainmeterShowMeter MeterWeek6][!RainmeterShowMeter MeterWeek0][!RainmeterMoveMeter #X0# #Y0# MeterWeek4][!RainmeterMoveMeter #X0# #Y1# MeterWeek5][!RainmeterMoveMeter #X0# #Y2# MeterWeek6][!RainmeterMoveMeter #X0# #Y3# MeterWeek0]

[MeasureWeek4]
MeasureName=MeasureWeek
IfEqualValue=4
IfEqualAction=!execute [!RainmeterHideMeter MeterWeek2][!RainmeterHideMeter MeterWeek3][!RainmeterHideMeter MeterWeek4][!RainmeterShowMeter MeterWeek5][!RainmeterShowMeter MeterWeek6][!RainmeterShowMeter MeterWeek0][!RainmeterShowMeter MeterWeek1][!RainmeterMoveMeter #X0# #Y0# MeterWeek5][!RainmeterMoveMeter #X0# #Y1# MeterWeek6][!RainmeterMoveMeter #X0# #Y2# MeterWeek0][!RainmeterMoveMeter #X0# #Y3# MeterWeek1]

[MeasureWeek5]
MeasureName=MeasureWeek
IfEqualValue=5
IfEqualAction=!execute [!RainmeterHideMeter MeterWeek3][!RainmeterHideMeter MeterWeek4][!RainmeterHideMeter MeterWeek5][!RainmeterShowMeter MeterWeek6][!RainmeterShowMeter MeterWeek0][!RainmeterShowMeter MeterWeek1][!RainmeterShowMeter MeterWeek2][!RainmeterMoveMeter #X0# #Y0# MeterWeek6][!RainmeterMoveMeter #X0# #Y1# MeterWeek0][!RainmeterMoveMeter #X0# #Y2# MeterWeek1][!RainmeterMoveMeter #X0# #Y3# MeterWeek2]

[MeasureWeek6]
MeasureName=MeasureWeek
IfEqualValue=6
IfEqualAction=!execute [!RainmeterHideMeter MeterWeek4][!RainmeterHideMeter MeterWeek5][!RainmeterHideMeter MeterWeek6][!RainmeterShowMeter MeterWeek0][!RainmeterShowMeter MeterWeek1][!RainmeterShowMeter MeterWeek2][!RainmeterShowMeter MeterWeek3][!RainmeterMoveMeter #X0# #Y0# MeterWeek0][!RainmeterMoveMeter #X0# #Y1# MeterWeek1][!RainmeterMoveMeter #X0# #Y2# MeterWeek2][!RainmeterMoveMeter #X0# #Y3# MeterWeek3]

[MeterWeek0]
Meter=STRING
MeterStyle=MeterStyle
Text="Sunday"
Hidden=0

[MeterWeek1]
Meter=STRING
MeterStyle=MeterStyle
Text="Monday"
Hidden=0

[MeterWeek2]
Meter=STRING
MeterStyle=MeterStyle
Text="Tuesday"
Hidden=0

[MeterWeek3]
Meter=STRING
MeterStyle=MeterStyle
Text="Wednesday"
Hidden=0

[MeterWeek4]
Meter=STRING
MeterStyle=MeterStyle
Text="Thursday"
Hidden=0

[MeterWeek5]
Meter=STRING
MeterStyle=MeterStyle
Text="Friday"
Hidden=0

[MeterWeek6]
Meter=STRING
MeterStyle=MeterStyle
Text="Saturday"
Hidden=0
[/size]
Last edited by Chewtoy on April 4th, 2010, 5:35 pm, edited 1 time in total.
Reason: Please put large quantities of code inside the [code] tags.
User avatar
Chewtoy
Moderator
Posts: 1010
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: How to show tomorrow and day after tomorrow 's week ?

Post by Chewtoy »

I'm afraid I don't really know what you want either.
I can however tell that you do a substitute that there is absolutly no need for.
Just change %A to %w and you will have it as numbers. http://msdn.microsoft.com/en-us/library/fe06s4ak%28vs.71%29.aspx
I don't think, therefore I'm not.
User avatar
cackling
Posts: 2
Joined: January 17th, 2010, 5:44 am

Re: How to show tomorrow and day after tomorrow 's week ?

Post by cackling »

i find a strange bug for Rainmeter latest version 1.2 rev357(32bit),
I used %w for used , but it give me the strange number "13" last sunday.
so make me change the code. when i use version 1.2 rev349 , it work good !