The Win7AudioPlugin returns both a string and text (which - strangely, it seems to me - is normal for Rainmeter measures). The number is the volume level, as a percentage, and the string is the name of the audio device. Sometimes the number can be -1. When it is, I want a corresponding meter to output the character 'x'.
Here is the problem. I want to use Substitute (is there another way?) to turn the -1 into 'x'. Yet, Substitute works only on strings. Thus, in the present case, that operation is set to operate upon . . the name of the audio device. I have tried various workarounds but to no avail. Here is my current code (with the failed workarounds removed).
Code: Select all
[measure_volume]
Measure=Plugin
Plugin=Win7AudioPlugin
UpdateDivider=1
; The following substitution operates upon the wrong value . .
Substitute="-1":"x"
[meter_volume_value]
MeasureName=measure_volume
Meter=String
Text=%1
W=20
X=92r
Thanks in advance for any help. Apologies if I miss something obvious.