CarlotaN wrote: ↑February 25th, 2024, 7:21 am
- [!DisableMeasure MeasureBar] => Disabled=1 => OK!!!
CarlotaN wrote: ↑February 25th, 2024, 7:21 am
- Fórmula = (( MeasureBar = 0 ) ? 599 : ( MeasureBar - 1 )) => Does not show the round line
Make sure you're using the correct form of the option, not the one posted above. The correct form is
Formula=(( MeasureBar = 0 ) ? 599 : ( MeasureBar - 1 )), but you have posted
Fórmula = (( MeasureBar = 0 ) ? 599 : ( MeasureBar - 1 )). I am pretty sure you've did this mistake, because when I copied the code posted by you and replaced the Formula option of the [MeasureBar] measure with the correctly written option, the skin did work. So, make sure to use the not-miswritten option.
And there is one more thing to be taken into account. But this thing were present on the original version of the skin as well and was not altered by my. Namely I1m talking about the fact that the roundline becomes visible ONLY if the PauseTime variable is set to -1. But when ran, the skin rewrites this variable through the @Resources\Scripts\Timer.lua script file and it never goes back to -1. Accordingly after the first run of the skin (in fact after the first run of the script file), the roundline is never visible once again. But this was like this even on the original skin. Don't know what the intention of the author was, but this is another thing you should have to take care of, to get the roundline visible. Manually replacing the variable and refreshing the skin, fixes this issue (assuming the above described Formula issue is fixed as well).
CarlotaN wrote: ↑February 25th, 2024, 7:21 am
- DynamicVariables=1 => In the cases [MeterSeconds], [TimeMeter] => it works. But it doesn't work for buttons.
Not sure I can follow what you mean by this.
CarlotaN wrote: ↑February 25th, 2024, 7:21 am
- And finally it does not work
Code: Select all
[IsStopped]
...
IfCondition=(#CURRENTSECTION#=1)
IfTrueAction=[!HideMeter "MeterSeconds"][!HideMeter "TimeMeter"][!HideMeter "StopButton"][!Redraw]
IfFalseAction=[!ShowMeter "MeterSeconds"][!ShowMeter "TimeMeter"][!ShowMeter "StopButton"][!Redraw]
...
[IsPaused]
...
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!HideMeter "ContinueButton"]
IfFalseAction=[!ShowMeter "ContinueButton"]
...
[IsStarted]
...
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!HideMeter "PauseButton"]
IfFalseAction=[!ShowMeter "PauseButton"]
...
Add the
DynamicVariables=1 option to all of the above three measures ([IsStopped], [IsPaused] and [IsStarted]). Apply the bangs as described on my previous reply.
Just to make sure you don't have any mistake, here is the working code. Beside the described things, I did a few other small adjustments as well. Please give a try to this and let me know if it is working:
Code: Select all
[Rainmeter]
Update=60
AccurateText=1
Background=#@#Images\cronos.png
MiddleMouseDownAction=!Refresh
OnRefreshAction=[!ShowMeter "StartButton"][!HideMeter "PauseButton"]
;-------------------------------------------------------------
[Metadata]
Name=SweepSeconds + Timer Monterey
Author=JSMorley, Creewick... y más que no me acuerdo... y algo de mi.
Information=Cronómetro. Basado en SweepSeconds y Timer Monterey
License=Creative Commons Share-Alike NC 4
;-------------------------------------------------------------
[Variables]
StartTime=-1
EndTime =-1
PauseTime=-1
ActionPlay=[!EnableMeasure MeasureTimeDelta][!EnableMeasure MeasureElapsedTime][!EnableMeasure MeasureBar][!UnpauseMeasure MeasureBar][!UnpauseMeasure TimeLeft][!ShowMeter "StopButton"][!ShowMeter "PauseButton"][!Redraw]
ActionPause=[!DisableMeasure MeasureTimeDelta][!PauseMeasure MeasureBar][!PauseMeasure TimeLeft][!ShowMeter "StartButton"][!HideMeter "PauseButton"][!Redraw]
[TextStyle]
FontFace=Garamond
FontColor=644b40
FontSize=16
StringEffect=Shadow
FontEffectColor=fdfceb
StringStyle=Bold
StringAlign=CenterCenter
AntiAlias=1
X=70
[sController]
W=24
H=24
MouseOverAction=[!SetOption "#CurrentSection#" ImageTint DDDDDD][!UpdateMeter #CurrentSection#][!Redraw]
MouseLeaveAction=[!SetOption "#CurrentSection#" ImageTint ""][!UpdateMeter #CurrentSection#][!Redraw]
;-------------------------------------------------------------
;[MEDIDORES Y SCRIPT]
;-------------------------------------------------------------
[Lua]
Measure=Script
ScriptFile=#@#Scripts\Timer.lua
[IsStopped]
Group=Measures
Measure=Calc
Formula=(#StartTime# = -1)
IfCondition=(#CURRENTSECTION#=1)
IfTrueAction=[!DisableMeasure "TimeLeft"][!HideMeter "MeterSeconds"][!HideMeter "TimeMeter"][!HideMeter "StopButton"][!Redraw]
IfFalseAction=[!EnableMeasure "TimeLeft"][!ShowMeter "MeterSeconds"][!ShowMeter "TimeMeter"][!ShowMeter "StopButton"][!Redraw]
DynamicVariables=1
[IsPaused]
Group=Measures
Measure=Calc
Formula=(#PauseTime# <> -1)
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!HideMeter "ContinueButton"]
IfFalseAction=[!ShowMeter "ContinueButton"]
DynamicVariables=1
[IsStarted]
Group=Measures
Measure=Calc
Formula=(#StartTime# <> -1) && (#PauseTime# = -1)
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!HideMeter "PauseButton"]
IfFalseAction=[!ShowMeter "PauseButton"]
DynamicVariables=1
[TrueNow]
Measure=Time
UpdateDivider=1
[TheClock]
Group=Measures
Measure=Time
Format=🔔 %H:%M
;-------------------------------------------------------------
;[ELIPSE PERCENTUAL]
;-------------------------------------------------------------
[TimeMeterBase]
Meter=Shape
Shape=Ellipse 0,0,56,56 | Fill Color 00000000 | StrokeWidth 4 | Stroke Color 2C2C2C
X=70
Y=70
[TimeLeft]
Group=Measures
Measure=Time
Format=%#S
;Disabled=([IsStopped] = 1)
[MeasureBar]
Measure=Calc
Formula=(( MeasureBar = 0 ) ? 599 : ( MeasureBar - 1 ))
;Formula=(( MeasureBar + 1 ) % 600 )
MinValue=0
MaxValue=600
Disabled=1
;-------------------------------------------------------------
;[LINEA DE TIEMPO]
;-------------------------------------------------------------
[MeterSeconds]
Group=Meters
Meter=Roundline
MeasureName=MeasureBar
X=r
Y=r
StartAngle=(-PI/2)
RotationAngle=(2*PI)
LineStart=54
LineLength=58
LineColor=f9932e
Solid=1
AntiAlias=1
;Hidden=([IsStopped] = 1)
UpdateDivider=1
;-------------------------------------------------------------
;[CONTADORES DE TIEMPO]
;-------------------------------------------------------------
[MeasureCurrentTime]
Group=Measures
Measure=Time
[MeasureTimeDelta]
Group=Measures
Measure=Calc
Formula=(MeasureTimeDelta = 0 ? (MeasureCurrentTime - MeasureElapsedTime / 10) : MeasureTimeDelta)
Disabled=1
[MeasureElapsedTime]
Group=Measures
Measure=Calc
Formula=(MeasureTimeDelta = 0 ? MeasureElapsedTime : (MeasureCurrentTime - MeasureTimeDelta) * 10)
[CalcElapsedHours]
Group=Meters
Measure=Calc
Formula=Floor(MeasureElapsedTime / 10 / 3600) % 24
RegExpSubstitute=1
Substitute="^(\d)$":"0\1"
[CalcElapsedMinutes]
Group=Meters
Measure=Calc
Formula=Floor(MeasureElapsedTime / 10 / 60) % 60
RegExpSubstitute=1
Substitute="^(\d)$":"0\1"
[CalcElapsedSeconds]
Group=Meters
Measure=Calc
Formula=Floor(MeasureElapsedTime / 10) % 60
RegExpSubstitute=1
Substitute="^(\d)$":"0\1"
;-------------------------------------------------------------
;[TIEMPO]
;-------------------------------------------------------------
[VisibleTime]
Group=Measures
Meter=String
MeasureName=CalcElapsedHours
MeasureName2=CalcElapsedMinutes
MeasureName3=CalcElapsedSeconds
MeterStyle=TextStyle
NumOfDecimals=0
Y=60
Text="%1:%2:%3"
;-------------------------------------------------------------
;[RELOJ]
;-------------------------------------------------------------
[ClockMeter]
Group=Meters
MeasureName=TheClock
Meter=String
MeterStyle=TextStyle
FontSize=9
Text=
Y=80
;-------------------------------------------------------------
;[BOTONES]
;-------------------------------------------------------------
[StopButton]
Meter=Image
Group=Meters
ImageName=#@#Images\istop.png
MeterStyle=sController
X=59
Y=25
LeftMouseUpAction=[&Lua:stop()][!Redraw]
Hidden=1
[StartButton]
Group=Meters
Meter=Image
ImageName=#@#Images\iplay.png
MeterStyle=sController
X=r
Y=90
LeftMouseUpAction=[&Lua:continue()][!Delay "0"]#ActionPlay#
;Hidden=([IsStopped] = 0)
;DynamicVariables=1
[PauseButton]
Group=Meters
Meter=Image
ImageName=#@#Images\ipause.png
MeterStyle=sController
X=r
Y=r
LeftMouseUpAction=[&Lua:pause()]#ActionPause#
;Hidden=([IsStarted] = 0)
;DynamicVariables=1
[ContinueButton]
Group=Meters
Meter=Image
ImageName=#@#Images\iplay.png
MeterStyle=sController
X=r
Y=r
LeftMouseUpAction=[&Lua:continue()][!Delay "0"]#ActionPlay#
;Hidden=([IsPaused] = 0)
;DynamicVariables=1
See that I commented out the
Formula=(( MeasureBar + 1 ) % 600 ) form of the Formula option of the [MeasureBar] and used instead
Formula=(( MeasureBar = 0 ) ? 599 : ( MeasureBar - 1 )). Since the previous version of the option is just commented out, you can easily replace it back with the original form, as you wish.
CarlotaN wrote: ↑February 25th, 2024, 2:26 pm
There is another person who needs help, about a Euro converter... could someone help him?
What Euro converter is? Am I missing something???