Hello again,
I'm trying to activate/deactivate the clock sound so I can make a better one for Christmas, although for the moment I'm using this as a base until I have the graphics.
I manage to stop it and activate it as I click the button in the center of the clock, but when I reactivate it again, it sounds either the last quarter/s hour or the hours just before. I have been able to make a "patch" using:But I'm convinced there is some way to do it better. I'm not uploading the files again because there is nothing new except the text.Can you help me improve it?
Thank you very much heroes!!!
I'm trying to activate/deactivate the clock sound so I can make a better one for Christmas, although for the moment I'm using this as a base until I have the graphics.
I manage to stop it and activate it as I click the button in the center of the clock, but when I reactivate it again, it sounds either the last quarter/s hour or the hours just before. I have been able to make a "patch" using:
Code:
MouseLeaveAction=[!CommandMeasure Ding "Stop 1"][!CommandMeasure Ding "Stop 2"][!Redraw]
Code:
[Rainmeter]Update=60MouseActionCursor=1MiddleMouseDownAction=!Refresh;-------------------------------------------------------------[Metadata]Name=Pendulum clockDescription=Based in RoDin's clock - Skin 273 for Rainmeter. With the help of Balalá and Yincognito."Version=1.0Variant=Standart ;-------------------------------------------------------------[Variables]SoundPath=#@#\MusicaCourse=0Interval1=2000Interval2=1500Calabaza=0W=70U=[!UpdateMeasure mActionTimer][!UpdateMeter MtCucu1][!Redraw];-------------------------------------------------------------;[MEDICIONES];-------------------------------------------------------------[mTime]Measure=Time[m24Hr]Measure=TimeFormat=%H:%M:%S[Hours]Measure=TimeFormat=%I[Minutes]Measure=TimeFormat=%M[mDing]Measure=PluginPlugin=ActionTimerActionList1=Repeat HourDing,#Interval1#,[HourDings] | Wait #Interval1#ActionList2=Repeat MinuteDing,#Interval2#,[MinuteDings] | Wait #Interval2#HourDing=[!ShowMeter "MtCucu2"][!HideMeter "MtCucu1"][!CommandMeasure mActionTimer "Execute 1"][Play "#SoundPath#/Dong.wav"][!Delay "1500"][!HideMeter "MtCucu2"][!ShowMeter "MtCucu1"]MinuteDing=[!ShowMeter "MtCucu2"][!HideMeter "MtCucu1"][!CommandMeasure mActionTimer "Execute 1"][Play "#SoundPath#/Cucu.wav"][!Delay "1200"][!HideMeter "MtCucu2"][!ShowMeter "MtCucu1"]UpdateDivider=-1DynamicVariables=1[HourDings]Measure=CalcFormula=(Trunc(Hours/1))OnChangeAction=[!UpdateMeasure mDing][!CommandMeasure mDing "Stop 2"][!CommandMeasure mDing "Execute 1"]DynamicVariables=1Disabled=0[MinuteDings]Measure=CalcFormula=(Trunc(Minutes/15))OnChangeAction=[!UpdateMeasure mDing][!CommandMeasure mDing "Stop 1"][!CommandMeasure mDing "Execute 2"]DynamicVariables=1Disabled=0[PendulumMotion]Measure=CalcFormula=(#Course#?(PendulumMotion-(PendulumMotion>0)):(PendulumMotion+(PendulumMotion<(20-1))))IfCondition=(#CURRENTSECTION#<1)IfTrueAction=[!SetVariable Course "0"]IfCondition2=(#CURRENTSECTION#=19)IfTrueAction2=[!SetVariable Course "1"] DynamicVariables=1;-------------------------------------------------------------;[MAQUINARIA];-------------------------------------------------------------[MtPendulo]Meter=RotatorMeasureName=PendulumMotionImageName=#@#Imagenes\pendulo.pngStartAngle=6.0RotationAngle=0.65ValueRemainder=20OffsetX=31OffsetY=50W=72H=100X=178Y=528DynamicVariables=1;-------------------------------------------------------------;[ANIMACIÓN];-------------------------------------------------------------[MeasureLoop]Measure=LoopStartValue=0EndValue=15LoopCount=1Disabled=1[mActionTimer]Measure=PluginPlugin=ActionTimerActionList1=Repeat CountUp, #W#, 15 | Wait #W# | StartOverCountUp=[!SetVariable Calabaza "(Clamp(#Calabaza#+1,0,14))"]#U#StartOver=[!SetVariable Calabaza "0"]#U#DynamicVariables=1[MtCucu1]Meter=ImageMeasureName=MeasureLoopImagePath=#@#Imagenes\Calabazas\ImageName=c-%1.pngX=0Y=0DynamicVariables=1Hidden=1[MtCucu2]Meter=ImageX=rY=rImagePath=#@#Imagenes\Calabazas\ImageName=c-#Calabaza#.pngDynamicVariables=1[MtActivate]Meter=ImageW=424H=150X=rY=400rLeftMouseUpAction=[!CommandMeasure mActionTimer "Execute 1"]DynamicVariables=1;-------------------------------------------------------------;[RELOJ];-------------------------------------------------------------[MtReloj]Meter=ImageX=0Y=0ImageName=#@#Imagenes\cucu.png[HourHand]MeasureName=mTimeMeter=RotatorImageName=#@#Imagenes\hh.pngStartAngle=(2*PI)RotationAngle=(2*PI)ValueRemainder=43200OffsetX=37OffsetY=37W=74H=74X=173Y=196[MinutesHand]MeasureName=mTimeMeter=RotatorImageName=#@#Imagenes\hm.pngStartAngle=(2*PI)RotationAngle=(2*PI)ValueRemainder=3600OffsetX=37OffsetY=37W=74H=74X=rY=r[MtSound1]Meter=ImageImageName=#@#Imagenes\c.pngX=rY=rToolTipText=SilenciarMouseLeaveAction=[!CommandMeasure Ding "Stop 1"][!CommandMeasure Ding "Stop 2"][!Redraw]LeftMouseUpAction=[PlayStop "#SoundPath#"][!DisableMeasure "HourDings"][!DisableMeasure "MinuteDings"][!ShowMeter "MtSound2"][!HideMeter "MtSound1"][!Redraw][MtSound2]Meter=ImageImageName=#@#Imagenes\c.pngImageTint=ffaf85X=rY=rToolTipText=ActivarMouseLeaveAction=[!CommandMeasure Ding "Stop 1"][!CommandMeasure Ding "Stop 2"][!Redraw]LeftMouseUpAction=[PlayStop "#SoundPath#"][!EnableMeasure "HourDings"][!EnableMeasure "MinuteDings"][!ShowMeter "MtSound1"][!HideMeter "MtSound2"][!Redraw]Hidden=1
Thank you very much heroes!!!
Statistics: Posted by CarlotaN — 50 minutes ago