It is currently March 29th, 2024, 9:29 am

Lua script file validation is not done if Disabled

Report bugs with the Rainmeter application and suggest features.
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Lua script file validation is not done if Disabled

Post by death.crafter »

If you were to do this,

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
OnRefreshAction=[!Delay 1000][!EnableMeasure Script]

[Metadata]
Name=
Author=
Information=
Version=
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0

[Variables]

[Script]
Measure=Script
ScriptFile=xyz.lua
Disabled=1

[MeterString]
Meter=String

You wouldn't get any error in your logs that the script file is invalid.
from the Realm of Death
User avatar
Brian
Developer
Posts: 2674
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Lua script file validation is not done if Disabled

Post by Brian »

Hmmm, this one is tricky. Typically when a Measure is disabled, no messages for that Measure will appear in the log.

I fixed this for this particular event, and it will be available for the next release.

-Brian
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: Lua script file validation is not done if Disabled

Post by death.crafter »

Brian wrote: December 30th, 2021, 8:30 am Hmmm, this one is tricky. Typically when a Measure is disabled, no messages for that Measure will appear in the log.

I fixed this for this particular event, and it will be available for the next release.

-Brian
Ahh I see. So it was trying to show logs. We should let the Initialize parts log the messages even when disabled. The cases are too less tho, so not a necessary change.
from the Realm of Death