I want to use a variable that I stored in "Variables.inc" file in the "@Resources" folder. But when I move that action out of the [Rainmeter] section, they stop working. This variable that I want to use is extracted from "TIMEZONE_BIAS". Below is the code. I'm not sure what I'm missing.
Gangula wrote:This code works perfectly fine, but when I move the above actions out of [Rainmeter] section to any [Meter] section it doesn't work.
The OnRefreshAction option doesn't work outside of the [Rainmeter] section, can't be used anywhere else.
The LeftMouseUpAction works on any meter, but it is executed only if you click that meter, not on any other.
The 'OnRefreshAction' bang only works in the [Rainmeter] section. If you want to use this in a meter section, that bang will not work. (balala beat me!)
I would create a string measure to test the variable, and move the skin when the variable changes:
The main issue is that I need to use a variable in the OnRefresh & Onchange actions. So I need to place them after the [variables] section. Can I achieve this in any other way?
Gangula wrote:The main issue is that I need to use a variable in the OnRefresh & Onchange actions. So I need to place them after the [variables] section. Can I achieve this in any other way?
Not sure I understood what you would like to do. If you define a variable in the [Variables] section, you can use it in any section, including [Rainmeter]. The [Rainmeter] section can be placed anywhere, either before or after the [Variables] section. And doesn't matter where you put it, you can use the variable. Or many times you can use even a variable which isn't defined in the [Variables] section.