There seems to be some sort of overly-aggressive de-quoting / parsing / whatever going on in the latest beta. I found a situation which used to work all the way back to RM 3.x days, but now no longer works without adding a ton of quotes.
Below is a simple skin to illustrate. The issue in particular are the two !SetOption bangs. They are now throwing an error, whereas they BOTH worked OK in all previous versions. (I'm a little surprised the second one worked, but that's a different topic maybe...)
There are 2 errors in the log with the latest beta:
!SetOption: Skin "C:\Program" not found
!SetOption: Skin "C:\TEMP\Whatever2.txt" not found
The issue can be resolved with lots of quoting, but my concern is that "lots of quoting" was not necessary before the latest beta.
Code: Select all
[Rainmeter]
Update=1000
[Variables]
RunCommand=""C:\Program Files (x86)\Notepad++\notepad++.exe" {file}"
; removing outer quotes doesn't help
;RunCommand="C:\Program Files (x86)\Notepad++\notepad++.exe" {file}
; triple-quoting fixes both cases -- but was not required before the latest beta
;RunCommand=""""C:\Program Files (x86)\Notepad++\notepad++.exe" {file}"""
; ...or triple-quoting the !SetOption parameter instead of the variable (..."""[MeasureRunCommand1]""") also works
; the following worked as expected prior to the latest beta (quotes around measure name)
[MeasureRunCommand1]
Measure=String
String=#RunCommand#
Substitute="{file}":"C:\TEMP\Whatever1.txt"
IfCondition=1
IfTrueAction=[!SetOption MeterText1 LeftMouseUpAction "[MeasureRunCommand1]"]
UpdateDivider=-1
; surprisingly, the following worked too (no quotes around measure name)
[MeasureRunCommand2]
Measure=String
String=#RunCommand#
Substitute="{file}":"C:\TEMP\Whatever2.txt"
IfCondition=1
IfTrueAction=[!SetOption MeterText2 LeftMouseUpAction [MeasureRunCommand2]]
UpdateDivider=-1
[MeterText1]
Meter=String
MeasureName=MeasureRunCommand1
SolidColor=0,0,0
FontColor=255,255,255
Text="%1"
[MeterText2]
Meter=String
MeasureName=MeasureRunCommand2
SolidColor=128,0,0
FontColor=255,255,255
X=0r
Y=18r
Text="%1"