It is currently October 19th, 2021, 3:56 pm

Refresh this skin every minute

Help with creating, editing & fixing problems with skins
User avatar
Harsh_Xeron
Posts: 6
Joined: August 30th, 2021, 5:01 am

Re: Refresh this skin every minute

Post by Harsh_Xeron »

balala wrote: August 30th, 2021, 12:17 pm Have you tested your solution? Because it does hang up Rainmeter immediately. And this because when you refresh the skin, an update occurs immediately, which leads to a refresh, which leads to an update, which leads to a refresh... This way an endless loop occurs, hanging up Rainmeter.
yes you got it right I got the same problem rainmeter stucks as it is stuck in a loop. So I asked help
User avatar
Harsh_Xeron
Posts: 6
Joined: August 30th, 2021, 5:01 am

Re: Refresh this skin every minute

Post by Harsh_Xeron »

balala wrote: August 30th, 2021, 9:18 am Besides CodeCode's codes (which to be honest I couldn't figure out how do the refreshes, but this is another question), I have a question: are you sure you have and want to do so regularly the refreshes? Because the refresh is a quite destructive operation and it should be avoided as much as possible.
However if you still would want to do those refreshes, theoretically you should add a measure like the following one to your code:

Code: Select all

[Variables]
...
RefreshInterval=60

[MeasureRefresh]
Measure=Calc
Formula=( COUNTER % #RefreshInterval# )
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!Refresh]
Note here the RefreshInterval variable, added to the [Variables] section. It is the number of seconds after which you would like to get the refreshes. Leave the existing variables and the @Include... options and add this variable as well.

Good question!


Will it cause Lag every minute ?
User avatar
balala
Rainmeter Sage
Posts: 13324
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Refresh this skin every minute

Post by balala »

Harsh_Xeron wrote: August 31st, 2021, 2:22 am yes you got it right I got the same problem rainmeter stucks as it is stuck in a loop.
Do you mean when you applied CodeCode's solution?
Harsh_Xeron wrote: August 31st, 2021, 2:24 am Will it cause Lag every minute ?
Well, refreshing a skin, depending the skin as well might cause a lag. But as said this depends on the skin. My supposition is that your skin is not too complicated, so I'd say probably it won't cause lags. However the easiest way is to test it: add the described measure to your code, refresh the skin and follow if the lags are occurring. Are they?
User avatar
Harsh_Xeron
Posts: 6
Joined: August 30th, 2021, 5:01 am

Re: Refresh this skin every minute

Post by Harsh_Xeron »

balala wrote: August 31st, 2021, 6:07 pm Do you mean when you applied CodeCode's solution?

Well, refreshing a skin, depending the skin as well might cause a lag. But as said this depends on the skin. My supposition is that your skin is not too complicated, so I'd say probably it won't cause lags. However the easiest way is to test it: add the described measure to your code, refresh the skin and follow if the lags are occurring. Are they?

When I tried setting the time on 1 sec, whole rainmeter stucks but the skin refreshes every sec animations and other skins are stuck though.
Also the 60 sec timer doesn't work the skin won't refresh after 60 sec.
It only works on 1 sec but rainmeter stucks and as soon as I change it to 2 sec Rainmeter behaves normally but the skin won't refresh

The skin mane is modular clocks by Jax There are many options in clocks from there the vertical cylinder one.
User avatar
Jax
Posts: 37
Joined: June 7th, 2021, 11:46 am

Re: Refresh this skin every minute

Post by Jax »

Thanks! I will definitely add an option for updating the cham for the next version. Never expect someone to actually use slideshow :rolmfao:
Deviantart page // My site // Please make a proper settings menu for your skins
User avatar
balala
Rainmeter Sage
Posts: 13324
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Refresh this skin every minute

Post by balala »

Harsh_Xeron wrote: September 1st, 2021, 2:23 am When I tried setting the time on 1 sec, whole rainmeter stucks but the skin refreshes every sec animations and other skins are stuck though.
Also the 60 sec timer doesn't work the skin won't refresh after 60 sec.
It only works on 1 sec but rainmeter stucks and as soon as I change it to 2 sec Rainmeter behaves normally but the skin won't refresh

The skin mane is modular clocks by Jax There are many options in clocks from there the vertical cylinder one.
I don't really quite understand your description, so if you still need help, please pack the whole config and upload the package here, to can check it. Still believe there is no need for such a regular refresh, but I'd be curious.
User avatar
Harsh_Xeron
Posts: 6
Joined: August 30th, 2021, 5:01 am

Re: Refresh this skin every minute

Post by Harsh_Xeron »

Jax wrote: September 1st, 2021, 4:18 am Thanks! I will definitely add an option for updating the cham for the next version. Never expect someone to actually use slideshow :rolmfao:
Well I use it ;-)
User avatar
MourningStar
Posts: 228
Joined: June 12th, 2016, 2:40 am

Re: Refresh this skin every minute

Post by MourningStar »

balala wrote: August 30th, 2021, 9:18 am... refresh is a quite destructive operation ...
What?!?!
Really?
Please, tell me exactly what gets destroyed.
-thank you
User avatar
death.crafter
Posts: 1045
Joined: April 24th, 2021, 8:13 pm

Re: Refresh this skin every minute

Post by death.crafter »

MourningStar wrote: September 8th, 2021, 3:25 am What?!?!
Really?
Please, tell me exactly what gets destroyed.
-thank you
Your Compooter :rolmfao:
from the Realm of Death
My Current Desktop
User avatar
balala
Rainmeter Sage
Posts: 13324
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Refresh this skin every minute

Post by balala »

MourningStar wrote: September 8th, 2021, 3:25 am Please, tell me exactly what gets destroyed.
For instance the dynamically created / modified variables and options (those which are set by !SetVariable and !SetOption bangs). Some details here.