Mmm, I liked the first solution, unfortunately it doesn't work. There's still no match:Not sure there is a great solution. If the "case" of the string is not particularly important, then:Works, but does change Ernest to ernest.Code:
[MeasureString]Measure=StringString=C:\Users\Ernest\Documents\Rainmeter\Substitute="\E":"\e"IfMatch=^\Q[MeasureString]\E$IfMatchAction=[!SetOption MeterString Text "Yes"]DynamicVariables=1
Might be simpler to go with:Code:
[MeasureString]Measure=StringString=C:\Users\Ernest\Documents\Rainmeter\IfMatch=[MeasureString:EscapeRegExp]IfMatchAction=[!SetOption MeterString Text "Yes"]DynamicVariables=1
Code:
[Test]Measure=StringString=C:\Users\Ernest\Documents\Rainmeter\Substitute="\U":"\u","\E":"\e","\Q":"\q"IfMatch=^\Q[Test]\E$IfMatchAction=[!Log Yes]IfNotMatchAction=[!Log No]
The second solution is not viable either.
What I'm doing is to use your GetActiveTitle to enable\disable HotKey when the skin is\isn't in focus.
Code:
[inFocus]Measure=PluginPlugin=GetActiveTitleIfMatch=^\Q#CURRENTPATH##CURRENTFILE#\E$IfMatchAction=[!CommandMeasure HKUP Start][!CommandMeasure HKDown Start]IfNotMatchAction=[!CommandMeasure HKUP Stop][!CommandMeasure HKDown Stop]IfMatchMode=1
Something like:
Code:
[SkinPath]Measure=StringString=#CURRENTPATH##CURRENTFILE#[isActive]Measure=PluginPlugin=GetActiveTitleIfMatch=^[SkinPath:EscapeRegExp]$IfMatchAction=[!CommandMeasure HKUP Start][!CommandMeasure HKDown Start]IfNotMatchAction=[!CommandMeasure HKUP Stop][!CommandMeasure HKDown Stop]IfMatchMode=1
Statistics: Posted by RicardoTM — 54 minutes ago