It is currently April 18th, 2024, 3:07 pm

Variable reference

Get help with installing and using Rainmeter.
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Variable reference

Post by mak_kawa »

Is there a way to refer *directly* to other config's variable?

So far, I think there is a way of indirect reference, and I am using it now.
That is, when set a variable, set it to another config at the same time to sync...like this.
[!SetVariable SomeVariable Value][!SetVariable SomeVariable Value AnotherConfig]

This is applicable enough, but I think somewhat redundant...
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Variable reference

Post by jsmorley »

mak_kawa wrote: November 22nd, 2019, 12:21 am Is there a way to refer *directly* to other config's variable?

So far, I think there is a way of indirect reference, and I am using it now.
That is, when set a variable, set it to another config at the same time to sync...like this.
[!SetVariable SomeVariable Value][!SetVariable SomeVariable Value AnotherConfig]

This is applicable enough, but I think somewhat redundant...
No, there is no way to "pull" a value from one skin to another, you have to "push" from one skin to another as you demonstrated.
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: Variable reference

Post by mak_kawa »

Hi jsmorley

Thank you for quick clarification. I am now convinced.
User avatar
Yamajac
Posts: 134
Joined: June 30th, 2014, 8:44 am

Re: Variable reference

Post by Yamajac »

If you REALLY worked at it you could get the variables by reading rainmeter's memory and extracting them that way. But in like 99% of use cases just pushing from one skin to another is better than this.
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: Variable reference

Post by mak_kawa »

Ah...not badly. As already said, the "push" method is applicable/practical for me, and actually I am using it to grab the condition of other skin config. But...yes, probaly I am fussy about such trivia. :-)
User avatar
balala
Rainmeter Sage
Posts: 16143
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Variable reference

Post by balala »

mak_kawa wrote: November 22nd, 2019, 12:38 am Hi jsmorley

Thank you for quick clarification. I am now convinced.
We all can trust in jsmorley's advices at least 110%. :bow: