Harsh_Xeron wrote: ↑August 30th, 2021, 5:07 am
can someone please make this skin refresh evey minute
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:
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.
Jax wrote: ↑August 30th, 2021, 9:06 am
Hey, creator of the skin here, was wondering why would you like to have it refreshed every minute?
[Variables]
; In minutes
Interval=1
[Rainmeter]
OnRefreshAction=[!Delay (#Interval#*60000)][!Refresh]
Oh, balala. I just used the regular skin update bumped it to 60000, and used OnUpdateAction, to do basically the exact thing you and death.crafter suggested. I know mine isnt as good, but my intentions were just to help.
Not necessary to complicate it. As usually more solutions available to the same question. Mine was one of them. Yours is another. Neither is better than the other, I think.
CodeCode wrote: ↑August 30th, 2021, 11:04 am
Oh, balala. I just used the regular skin update bumped it to 60000, and used OnUpdateAction, to do basically the exact thing you and death.crafter suggested. I know mine isnt as good, but my intentions were just to help.
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.
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.
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?