It is currently December 12th, 2019, 8:13 pm

Variable reference

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

Variable reference

mak_kawa » 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...
User avatar
jsmorley
Developer
Posts: 19864
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Variable reference

jsmorley » November 22nd, 2019, 12:23 am

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: 371
Joined: December 30th, 2015, 9:47 am

Re: Variable reference

mak_kawa » November 22nd, 2019, 12:38 am

Hi jsmorley

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

Re: Variable reference

Yamajac » November 22nd, 2019, 1:50 am

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: 371
Joined: December 30th, 2015, 9:47 am

Re: Variable reference

mak_kawa » November 22nd, 2019, 2:42 am

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: 9258
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Variable reference

balala » November 22nd, 2019, 8:39 am

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: