It is currently June 3rd, 2024, 2:03 am

Knowing whether a measure is enabled or disabled.

General topics related to Rainmeter.
r0k
Posts: 78
Joined: March 9th, 2012, 10:06 am

Knowing whether a measure is enabled or disabled.

Post by r0k »

Is there a way to be sure a measure that was enabled when the skin was started have actually been disabled apart from having faith in both the bang and my coding skills to call it from a LUA or AutoHotKey script :D
In the about dialog, the measure is still visible with it's last value.
User avatar
jsmorley
Developer
Posts: 22637
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Knowing whether a measure is enabled or disabled.

Post by jsmorley »

r0k wrote:Is there a way to be sure a measure that was enabled when the skin was started have actually been disabled apart from having faith in both the bang and my coding skills to call it from a LUA or AutoHotKey script :D
In the about dialog, the measure is still visible with it's last value.
No way that I am aware of. Measures returning a number will always be zero when disabled, but measures returning a string will contain the last value set when they were enabled, and in any case zero is a perfectly valid "answer" and doesn't explicitly tell you a measure is disabled.