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

Help: Rainmeter Skins • Re: Flash at the top and bottom of the hour

$
0
0
I am trying to get my time block to flash at the top and bottom of the hour. My code is not working and I suppose it is some concept I am missing. I appreciate any guidance anyone can provide.
The code perfectly works. However you should keep somethings in mind:
  • Since the measure returning the minutes ([TimeMinutesTest]) is updated once per minute, the [OnMinuteCheck] measure gets changing the value up to one minute after the minute becomes equal by 0 or 30. So there might be cases when the [HourFlash] meter is shown on 0 30 minutes and 59 seconds. You practically have to look carefully to the skin when the minutes gets being 0 or 30 until the minute becomes 1 or 31, to see the [HourFlash] meter. Don't think worth applying the UpdateDivider=60 option onto the [TimeMinutesTest] measure, such a Time measure don't consume too much resources to worth updating it so rarely.
  • You don't have to use the [TimeMinutesTest] measure name as a section variable onto the Formula option of the [OnMinuteCheck] measure. Instead of the applied form of this option, I probably would use something like: Formula=(( TimeMinutesTest = 0 ) ? 1 : (( TimeMinutesTest = 56 ) ? 2 : 0 )). Note here that besides removing the brackets, I added some parenthesis around the conditions. If you do this, the DynamicVariables=1 option of the same [OnMinuteCheck] measure becomes useless as well and can freely be removed.
  • However even more: I don't see the meaning of this [OnMinuteCheck] measure. The condition can be added directly to the [TimeMinutesTest] measure, reducing this way the number of measures (always a good idea). Something like this:

    Code:

    [TimeMinutesTest]Measure=TimeFormat=%M; UpdateDivider=60 means this measure only updates every 60 skin updates.; With Update=1000, the skin updates every second, so after 60 seconds, this measure updates once.UpdateDivider=60IfCondition=((#CURRENTSECTION#=0)||(#CURRENTSECTION#=30))IfTrueAction=[!ShowMeter "HourFlash"][!Delay 500][!HideMeter "HourFlash"]
  • Note that the code of the [MeterText1], [MeterText2] and [MeterText3] meters have not been published, so I just assume they are correct and the section variables used onto the Shape option of the [HourFlash] meter are correct and the rectangle drawn based on the value of these variables creates a proper and visible shape.
Taking into account all this, what do you mean by your code isn't working? Does this mean that the rectangle is not shown at the appropriate time?

Statistics: Posted by balala — Today, 3:16 pm



Viewing all articles
Browse latest Browse all 1707

Trending Articles