Code: Select all
[MeasureWin7Audio]
Measure=Plugin
Plugin=Win7AudioPlugin
OnChangeAction=[!Refresh]
I know this can be achieved with an IfMatch / IfCondition as well, but it requires saving the previous value and if we have the OnChangeAction option, why not use it? Not sure about how to internally differentiate between strings and numbers since, if I'm not mistaken, I recall reading somewhere that everything is a string in Rainmeter, or regarding the naming convention for the "other choice", but that is up to the developers (maybe an additional option like OnChangeTarget being 0 for any value which would be the default, 1 for the numerical value and 2 for the string value, or something along these lines)...
UPDATE: Just realized that this can be easily achieved by using the string value of this measure in a subsequent String (or Calc and using the numerical value, if that value is the target) measure and moving the OnChangeAction option there, like:
Code: Select all
[MeasureWin7AudioString]
Measure=String
String=[MS_Win7Audio_Win7AudioDevice]
OnChangeAction=[!Refresh]
DynamicVariables=1