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

Help: Rainmeter Skins • Re: Help with the skin's visual effect.

$
0
0
I can't solve this...

Code:

[M-Hour]Measure=TimeFormat=%H:%MUpdateDivider=10[MSec]Measure=TimeFormat=%SUpdateDivider=10[M-Day]Measure=TimeFormat=%ASubstitute="Sunday":"Sun","Monday":"Mon","Tuesday":"Tue","Wednesday":"Wed","Thursday":"Thu","Friday":"Fri","Saturday":"Sat"[M-DayIndex]Measure=TimeFormat=%w ; Índice do dia da semana (0=Domingo, 6=Sábado)[DayProgress]Measure=CalcFormula=M-DayIndex * (100 / 6) ; Progresso proporcional ao dia da semanaMinValue=0MaxValue=100
I'm not going into the Smooth code as that's something based on more code than I'd like to chew at this time, but it's no wonder it doesn't work if you don't follow some of the advice already given, like renaming those section name references to exclude the - symbol (wherever they occur in your skin!), or placing comments on a different lines:

Code:

[MHour]Measure=TimeFormat=%H:%MUpdateDivider=10[MSec]Measure=TimeFormat=%SUpdateDivider=10[MDay]Measure=TimeFormat=%ASubstitute="Sunday":"Sun","Monday":"Mon","Tuesday":"Tue","Wednesday":"Wed","Thursday":"Thu","Friday":"Fri","Saturday":"Sat"[MDayIndex]Measure=TimeFormat=%w; Índice do dia da semana (0=Domingo, 6=Sábado)[DayProgress]Measure=CalcFormula=MDayIndex * (100 / 6); Progresso proporcional ao dia da semanaMinValue=0MaxValue=100
Or, if you don't want to rename those section name references to exclude the - symbol, you need to enclose them between something (like square brackets in this case and have DynamicVariables=1 where you use them, or quotes in other cases) to not confuse Rainmeter, e.g.:

Code:

[M-Hour]Measure=TimeFormat=%H:%MUpdateDivider=10[MSec]Measure=TimeFormat=%SUpdateDivider=10[M-Day]Measure=TimeFormat=%ASubstitute="Sunday":"Sun","Monday":"Mon","Tuesday":"Tue","Wednesday":"Wed","Thursday":"Thu","Friday":"Fri","Saturday":"Sat"[M-DayIndex]Measure=TimeFormat=%w; Índice do dia da semana (0=Domingo, 6=Sábado)[DayProgress]Measure=CalcFormula=[M-DayIndex] * (100 / 6); Progresso proporcional ao dia da semanaMinValue=0MaxValue=100DynamicVariables=1
By the way, you [M-Day] measure is pointless, you can just use the %a for the abbreviated weekday name, instead of using %A and a Substitute to abbreviate the full weekday name yourself.

Statistics: Posted by Yincognito — Today, 12:52 pm



Viewing all articles
Browse latest Browse all 1573

Trending Articles