I want to have a countdown for a alarm through rainmeter.
is there a way to update >really only the meter<?
every time it redraws the meter group it activates the measures.
i could save a timestamp of the moment i started the countdown and compare the time (with additional time) to check if the time has passed...
but this seems too dirty
is there a way to only update just the meters without the measures?
if not... is there a simple way to add save and calculate time (maybe in seconds?)
derLeon wrote: ↑February 3rd, 2021, 3:55 pm
is there a way to only update just the meters without the measures?
Actually there is: add an UpdateDivider=-1 option to every measure you don't want to regularly update. If you want to update these measures you have to either create a [!UpdateMeasure "Measure1"][!UpdateMeasure "Measure2"]... list of bangs, or a simpler solution, include all those measures into a group, by adding a Group=MyGroup option to each of them (name it as you want), then update them by a [!UpdateMeasureGroup "MyGroup"] bang.
However I'm not sure what would you like to achieve: when I load the skin containing the posted code, the skin starts to count the time, but then what? Additionally note that the [MeasureCountDownH] measure is missing.
balala wrote: ↑February 3rd, 2021, 4:47 pm
Actually there is: add an UpdateDivider=-1 option to every measure you don't want to regularly update. If you want to update these measures you have to either create a [!UpdateMeasure "Measure1"][!UpdateMeasure "Measure2"]... list of bangs, or a simpler solution, include all those measures into a group, by adding a Group=MyGroup option to each of them (name it as you want), then update them by a [!UpdateMeasureGroup "MyGroup"] bang.
However I'm not sure what would you like to achieve: when I load the skin containing the posted code, the skin starts to count the time, but then what? Additionally note that the [MeasureCountDownH] measure is missing.
seems i explained it wrong. and yes. the countdown isn't finished. the part of setting the start time isn't written now. i should not be able to change the value of the counter at this state
this timer and the manual update is the problem. hover with the mouse above the brightness- (changes colors) or lock-symbol(locks the icons on the bottom). and then use the mousewheel a few times. happens each time and the timer gets 1+.
what [MeasureCountDown] does:
counting [rainmeter] update=1000 and
count [!RefreshGroup RefreshMeter] (mouseaction, line 6,7,82,83,114,115)
what [MeasureCountDown] should do:
count [rainmeter] update=1000 and
ignore [!RefreshGroup RefreshMeter] (mouseaction, line 6,7,82,83,114,115)
what the rest should do:
update each second
update when i "lower the brightness" or "lock the icons" to allow mouseaction or change colors instantly (line 6,7,82,83,114,115)
EDIT: i uploaded the wrong code. oops. corrected it (and the correct lines in this post)
coding is super confusing for me, i don't even remember correct wich version is working and which not *slams head on the desk*
Last edited by derLeon on February 4th, 2021, 3:34 am, edited 1 time in total.
after long time of research and testing i understoof how timestamp works and found a solution.
doesn't solve the topic here, but it solves the problem.
for google and search funktion i leave my counter-code here (nothing is more frustrating than only finding unanswered threads)
derLeon wrote: ↑February 4th, 2021, 3:34 am
after long time of research and testing i understoof how timestamp works and found a solution.
doesn't solve the topic here, but it solves the problem.
for google and search funktion i leave my counter-code here (nothing is more frustrating than only finding unanswered threads)
such a beauty. i am proud of my work
Alright, congrats if you succeeded achieving the goal by yourself. As far as i can tell, the skin is working, so is there anything else you want to ask?
balala wrote: ↑February 4th, 2021, 4:33 pm
Alright, congrats if you succeeded achieving the goal by yourself. As far as i can tell, the skin is working, so is there anything else you want to ask?
i am still not sure how to update measures and meters without activating a single "loop" manually.
it seems i dont understand the syntax...
i thought about it. i will ask again later if i have the problem again. (maybe i have a better example then)
/closed