Hi,
I would like that when the skin is loaded or refreshed, a message will appear in the log ,like [! Log "TEXT"]
Is that possible?
It is currently March 29th, 2024, 3:40 pm
Log message
-
- Posts: 841
- Joined: January 4th, 2018, 9:52 pm
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Log message
It is. Add the following option to the [Rainmeter] section: OnRefreshAction=[!Log "TEXT"]. The OnRefreshAction is executed every time you1re refreshing / loading the skin. The !Log bang sends the desired string to the log.xenium wrote:Hi,
I would like that when the skin is loaded or refreshed, a message will appear in the log ,like [! Log "TEXT"]
Is that possible?
-
- Posts: 841
- Joined: January 4th, 2018, 9:52 pm
Re: Log message
Thank you very muchbalala wrote:It is. Add the following option to the [Rainmeter] section: OnRefreshAction=[!Log "TEXT"]. The OnRefreshAction is executed every time you1re refreshing / loading the skin. The !Log bang sends the desired string to the log.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
-
- Posts: 841
- Joined: January 4th, 2018, 9:52 pm
Re: Log message
For the log message in the option OnRefreshAction=[!Log "TEXT"], can it be set to appear with a delay of 3 seconds ?
Thank you
Thank you
-
- Developer
- Posts: 22628
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Log message
Remove the OnRefreshAction, then add a measure:xenium wrote:For the log message in the option OnRefreshAction=[!Log "TEXT"], can it be set to appear with a delay of 3 seconds ?
Thank you
[MeasureDelay]
Measure=Calc
Formula=MeasureDelay + 1
IfCondition=MeasureDelay = 3
IfTrueAction=[!Log "TEXT"]
Note that this assumes that Update in [Rainmeter] is the default 1000. If it is not, you need to adjust the value to check for accordingly.
-
- Posts: 841
- Joined: January 4th, 2018, 9:52 pm
Re: Log message
Thank you very much !jsmorley wrote:Remove the OnRefreshAction, then add a measure:
[MeasureDelay]
Measure=Calc
Formula=MeasureDelay + 1
IfCondition=MeasureDelay = 3
IfTrueAction=[!Log "TEXT"]
Note that this assumes that Update in [Rainmeter] is the default 1000. If it is not, you need to adjust the value to check for accordingly.
-
- Developer
- Posts: 22628
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Log message
Glad to help. On reflection, since the measure value will start at 1 and not 0, to get exactly three seconds you would want:xenium wrote:Thank you very much !
[MeasureDelay]
Measure=Calc
Formula=MeasureDelay + 1
IfCondition=MeasureDelay = 4
IfTrueAction=[!Log "TEXT"]
Or:
[MeasureDelay]
Measure=Calc
Formula=MeasureDelay + 1
IfCondition=MeasureDelay > 3
IfTrueAction=[!Log "TEXT"]
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Log message
jsmorley's solution, as usually, is good, but instead I'd probably add a !Delay bang to the OnRefreshAction option: OnRefreshAction=[!Delay "3000"][!Log "TEXT"].