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

Help: Rainmeter Skins • Re: I need help with a cuckoo clock

$
0
0
Didn't test so I might be wrong with this, but most likely this happens when you (re)enable the HourDings and MinuteDings measures. These measures have an OnChangeAction on them, and disabling a measure doesn't preserve its numerical value like it does for strings:
https://docs.rainmeter.net/manual/measures/general-options/#Disabled
Therefore, enabling them after being previously disabled will always lead to an automatic execution of the OnChangeAction (which reacts to the change from the disabled measure value of 0 to the computed measure value on re-enabling).

One possible solution would be to avoid OnChangeAction and maybe disabling / enabling those measures, and use (default, i.e. without IfConditionMode=1) IfConditions to execute the same bangs only when the minute values become 0, 15, 30 or 45, as desired.
I don't know how to do it, or where to put it. The tutorial does not give clues or examples. :-(

Why is happening this has been told by Yincognito above, however there is a quite simple solution, even if it's not the best approach. Try replacing the LeftMouseUpAction options of the [MtSound1] and [MtSound2] meters by the following ones:

Code:

[MtSound1]...LeftMouseUpAction=[!DisableMeasure "HourDings"][!DisableMeasure "MinuteDings"][!ShowMeter "MtSound2"][!HideMeter "MtSound1"][!Redraw]...[MtSound2]...LeftMouseUpAction=[!EnableMeasure "HourDings"][!EnableMeasure "MinuteDings"][!ShowMeter "MtSound1"][!HideMeter "MtSound2"][!Redraw][!Delay "0"][PlayStop]...
Even if this seems to be working, it is definitely not the best approach. So far didn't find a better one, so try this out for first please.

Note: the PlayStop bang has no parameters. Accordingly the [PlayStop "#SoundPath#"] bang has two problems: the "#SoundPath#" parameter is not needed (or in fact is ignored by the bang), but even if it would be needed, it is incorrect, because #SoundPath# is the path of a folder, not a path of a .wav file.

There are some additional problems as well, but for first try out this solution and let me know if it fixes the issue. If it does, I come with the additional recommendations as well.
I just tried it and it doesn't work. Exactly the same thing happens, once you reactivate it they "sing" the last chimes. :confused:

Thank you very much for your help!!!

Statistics: Posted by CarlotaN — Today, 4:10 am



Viewing all articles
Browse latest Browse all 1538

Trending Articles