As you figured it out, you have a problem with the $UserInput$ variables, which is used more times (seven times, to be precise) in a single Command1 option. In such cases you either have to divide the bangs of the option into different Command1 - Command7 options, or, if you want to use one single such option, all $UserInput$ variables excepting the first one, have to be replaced by the name of the measure. This way the above measure, written correctly, has to look this way:arcanosa84 wrote: ↑September 17th, 2023, 5:07 am I am having problems writing a variable, when there is only one there are no problems, but I want to write the same value to several at the same time, I wrote it this way and it does not work, can you tell me what I am doing wrong???
I was reading but I only see that it can be done with one but try what they explain in Command1 so as not to make a super extensive code, I need 7 variables to take the edited value at the time I apply it, but I cannot join them, they all have different colors assigned, when I restore the default skin colors.
I don't know how to do it right, or how would it be applied?![]()
![]()
Command1=[!WriteKeyValue Variables ColorRecycleBG "$UserInput$" "#@#\Config\Styles.inc"][!WriteKeyValue Variables ColorSpeedFanBG2 "[MeterInputBGGC]" "#@#\Config\Styles.inc"][!WriteKeyValue Variables ColorRecycledF "[MeterInputBGGC]" "#@#\Config\Styles.inc"][!WriteKeyValue Variables ColorRecycledF2 "[MeterInputBGGC]" "#@#\Config\Styles.inc"][!WriteKeyValue Variables ColorCircleF1 "[MeterInputBGGC]" "#@#\Config\Styles.inc"][!WriteKeyValue Variables CircleColorLL "[MeterInputBGGC]" "#@#\Config\Styles.inc"][!WriteKeyValue Variables CircleColorF2 "[MeterInputBGGC]" "#@#\Config\Styles.inc"]
I think you've figured out the explanation, even if you didn't really understand it.
Note beside the updated variables, the space I left between the "[MeterInputBGGC]" and the next "#@#\Config\Styles.inc" parameter. You've bound them together, left no space between their quotes. Even if strictly speaking the option can work even with no such space, it's much better to use them.
And one more: [MeterInputBGGC] is a measure, not a meter. From the point of view of Rainmeter, this has not too much importance, it can work very well even so, but for a user looking to your code (or even for you after a while), this can be extremely confusing. I recommend to use the correct syntax and rename the section as [MeasureInputBGGC].