It is currently September 23rd, 2020, 12:44 pm

Calendar problem...

Help with creating, editing & fixing problems with skins
shawnoen
Posts: 3
Joined: December 31st, 2009, 7:21 pm

Re: Calendar problem...

Post by shawnoen »

Pure genius, thanks!!!!!
SpeedChaser
Posts: 16
Joined: February 18th, 2010, 10:32 am

Re: Calendar problem...

Post by SpeedChaser »

Hmm... What did just happen?

I copied the code posted by Alex to my ini, but something strange happened. Calendar did not display dates on top of each other, but it showed that last saturday was 31st instead of 1st. I tried deleting the code, and after a save and refresh, everything was back to normal. Saturday 1st and no double dates... Cool but too strange to be true! :shock:
User avatar
Alex2539
Rainmeter Sage
Posts: 648
Joined: July 19th, 2009, 5:59 am
Location: Montreal, QC, Canada

Re: Calendar problem...

Post by Alex2539 »

Gah... It's because your skin is modified to put Monday as the first day of the week. I guess I did all of my testing on the other one and didn't realize it wouldn't work. The fix is almost exactly the same, but with a few shift on what shows and hides on what day:

Code: Select all

[cDelay0]
Measure=Calc
Formula=1

[cDelay1]
Measure=Calc
Formula=cDelay0

[cDelay2]
Measure=Calc
Formula=cDelay1

[cDelay3]
Measure=Calc
Formula=cDelay2

[cDelay4]
Measure=Calc
Formula=cDelay3

[cDelay5]
Measure=Calc
Formula=cDelay4

[cDelay6]
Measure=Calc
Formula=cDelay5

[cDelay7]
Measure=Calc
Formula=cDelay6

[cDelay8]
Measure=Calc
Formula=cDelay7

[cDelay9]
Measure=Calc
Formula=cDelay8

[cDelay10]
Measure=Calc
Formula=cDelay9

[Fixit]
Measure=Calc
Formula=cDelay10=0

[cHidePrevIfFirst00]
Measure=Calc
Formula=(#_sun# = cMonthStart) ? 1 : -1
IfAboveValue   =0
IfAboveAction   =!Execute [!RainmeterHideMeter mDay00][!RainmeterShowMeter mPrevDay00][!RainmeterHideMeter mDay01][!RainmeterShowMeter mPrevDay01][!RainmeterHideMeter mDay02][!RainmeterShowMeter mPrevDay02][!RainmeterHideMeter mDay03][!RainmeterShowMeter mPrevDay03][!RainmeterHideMeter mDay04][!RainmeterShowMeter mPrevDay04][!RainmeterHideMeter mDay05][!RainmeterShowMeter mPrevDay05]
IfBelowValue   =0
IfBelowAction   =!Execute [!RainmeterShowMeter mDay00][!RainmeterHideMeter mPrevDay00][!RainmeterShowMeter mDay01][!RainmeterHideMeter mPrevDay01][!RainmeterShowMeter mDay02][!RainmeterHideMeter mPrevDay02][!RainmeterShowMeter mDay03][!RainmeterHideMeter mPrevDay03][!RainmeterShowMeter mDay04][!RainmeterHideMeter mPrevDay04][!RainmeterShowMeter mDay05][!RainmeterHideMeter mPrevDay05]
Disabled=[Fixit]
DynamicVariables=1

[cHidePrevIfFirst01]
Measure=Calc
Formula=(#_tue# = cMonthStart) ? 1 : -1
IfAboveValue   =0
IfAboveAction   =!Execute [!RainmeterHideMeter mDay00][!RainmeterShowMeter mPrevDay00]
IfBelowValue   =0
IfBelowAction   =!Execute [!RainmeterShowMeter mDay00][!RainmeterHideMeter mPrevDay00]
Disabled=[Fixit]
DynamicVariables=1

[cHidePrevIfFirst02]
Measure=Calc
Formula=(#_wed# = cMonthStart) ? 1 : -1
IfAboveValue   =0
IfAboveAction   =!Execute [!RainmeterHideMeter mDay00][!RainmeterShowMeter mPrevDay00][!RainmeterHideMeter mDay01][!RainmeterShowMeter mPrevDay01]
IfBelowValue   =0
IfBelowAction   =!Execute [!RainmeterShowMeter mDay00][!RainmeterHideMeter mPrevDay00][!RainmeterShowMeter mDay01][!RainmeterHideMeter mPrevDay01]
Disabled=[Fixit]
DynamicVariables=1

[cHidePrevIfFirst03]
Measure=Calc
Formula=(#_thu# = cMonthStart) ? 1 : -1
IfAboveValue   =0
IfAboveAction   =!Execute [!RainmeterHideMeter mDay00][!RainmeterShowMeter mPrevDay00][!RainmeterHideMeter mDay01][!RainmeterShowMeter mPrevDay01][!RainmeterHideMeter mDay02][!RainmeterShowMeter mPrevDay02]
IfBelowValue   =0
IfBelowAction   =!Execute [!RainmeterShowMeter mDay00][!RainmeterHideMeter mPrevDay00][!RainmeterShowMeter mDay01][!RainmeterHideMeter mPrevDay01][!RainmeterShowMeter mDay02][!RainmeterHideMeter mPrevDay02]
Disabled=[Fixit]
DynamicVariables=1

[cHidePrevIfFirst04]
Measure=Calc
Formula=(#_fri# = cMonthStart) ? 1 : -1
IfAboveValue   =0
IfAboveAction   =!Execute [!RainmeterHideMeter mDay00][!RainmeterShowMeter mPrevDay00][!RainmeterHideMeter mDay01][!RainmeterShowMeter mPrevDay01][!RainmeterHideMeter mDay02][!RainmeterShowMeter mPrevDay02][!RainmeterHideMeter mDay03][!RainmeterShowMeter mPrevDay03]
IfBelowValue   =0
IfBelowAction   =!Execute [!RainmeterShowMeter mDay00][!RainmeterHideMeter mPrevDay00][!RainmeterShowMeter mDay01][!RainmeterHideMeter mPrevDay01][!RainmeterShowMeter mDay02][!RainmeterHideMeter mPrevDay02][!RainmeterShowMeter mDay03][!RainmeterHideMeter mPrevDay03]
Disabled=[Fixit]
DynamicVariables=1

[cHidePrevIfFirst05]
Measure=Calc
Formula=(#_sat# = cMonthStart) ? 1 : -1
IfAboveValue   =0
IfAboveAction   =!Execute [!RainmeterHideMeter mDay00][!RainmeterShowMeter mPrevDay00][!RainmeterHideMeter mDay01][!RainmeterShowMeter mPrevDay01][!RainmeterHideMeter mDay02][!RainmeterShowMeter mPrevDay02][!RainmeterHideMeter mDay03][!RainmeterShowMeter mPrevDay03][!RainmeterHideMeter mDay04][!RainmeterShowMeter mPrevDay04]
IfBelowValue   =0
IfBelowAction   =!Execute [!RainmeterShowMeter mDay00][!RainmeterHideMeter mPrevDay00][!RainmeterShowMeter mDay01][!RainmeterHideMeter mPrevDay01][!RainmeterShowMeter mDay02][!RainmeterHideMeter mPrevDay02][!RainmeterShowMeter mDay03][!RainmeterHideMeter mPrevDay03][!RainmeterShowMeter mDay04][!RainmeterHideMeter mPrevDay04]
Disabled=[Fixit]
DynamicVariables=1
ImageImageImageImage
SpeedChaser
Posts: 16
Joined: February 18th, 2010, 10:32 am

Re: Calendar problem...

Post by SpeedChaser »

Thanks Alex, I will test the code if it stops working. For now it is working fine for some reason...
SpeedChaser
Posts: 16
Joined: February 18th, 2010, 10:32 am

Re: Calendar problem...

Post by SpeedChaser »

I tested this code today, but it doesn't seem to work. It fixes the problem, but the beginning of the first line duplicates the beginning of the second one. There is a zero at the end of the month aswell...

Image
SpeedChaser
Posts: 16
Joined: February 18th, 2010, 10:32 am

Re: Calendar problem...

Post by SpeedChaser »

Any1? Please!