I want to randomly output the A1 to A4 values in [Variables]
If you just output A3, you should also output B3.
It should not be B4.
I tried this method for that.
------------------------------------------------------
[Random]
Measure=Calc
Formula=Random
LowBound=1
HighBound=4
[OutPut1]
Meter=String
MeasureName=random
Text=#A%1#
This doesn't work. It is output as "#A1#" ~ "#A4#".
------------------------------------------------------
Meter=String
Text=#A3#
This works The output is "Healthy".
------------------------------------------------------
1. How should I write it in "text=" to make it work properly?
2. If the method is wrong, what should I do?
Variables.inc
Code: Select all
[Variables]
A1=Sweet
A2=Delicious
A3=Healthy
A4=Iced
B1=Apple
B2=Banana
B3=Orange
B4=Pear
Random.ini
Code: Select all
[Rainmeter]
Update=10000000
DynamicWindowSize=1
[Metadata]
PART.2 PRACTICE
[Variables]
@include=#@#Variables.inc
[Random Botton]
Meter=String
SolidColor=255,255,255,100
x=470
Y=50
W=30
H=30
LeftMouseUpAction=[!Refresh][!Update][!Redraw]
[Random]
Measure=Calc
Formula=Random
LowBound=1
HighBound=4
[OutPut1]
Meter=String
MeasureName=Random
Text=[color=#FF0040]"#A%1# #A4#"[/color]
FontSize=12
FC=255,255,255,255
AntiAlias=1
X=0
Y=100
[OutPut2]
Meter=String
MeasureName=Random
Text=[color=#FF0040]"#B%1# #B3#"[/color]
FontSize=12
FC=255,255,255,255
AntiAlias=1
X=0
Y=200