[Rainmeter]
Update=-1
AccurateText=1
[Variables]
[msRunCommand]
Measure=Plugin
Plugin=RunCommand
Program=""#PROGRAMPATH#Rainmeter.exe""
Parameter=[!SetVariable VAR "1#CRLF#2" "#CURRENTCONFIG#"]
[mtString1]
Meter=String
Text=Onett
Antialias=1
SolidColor=333333FF
FontColor=FFFFFFFF
FontSize=16
Padding=4,0,4,0
LeftMouseUpAction=[!CommandMeasure msRunCommand "Run"]
;; This will create a new process (with wrong parameters?), so I don't use.
;LeftMouseUpAction=["#PROGRAMPATH#Rainmeter.exe" "SomeParameters"]
send-crlf06.png
You might use Process Monitor - Microsoft(Sysinternals) for debugging.
send-crlf04.png
Usage of Process Monitor:
1. Load a Rainmeter skin.
send-crlf02.png
2. Install and Run a Process Monitor.
3. Filter settings: Process NameisRainmeter.exe then Include, click on the Add button. Click on the OK.
send-crlf01.png
4. Stop capture. Make sure that only process button is ON, others are OFF.
send-crlf07.png
5. Clear log and start capture.
6. Click on the skin.
send-crlf02.png
7. Stop capture, right-click the row Rainmeter.exe where Operation is Process Start, select Properties...
send-crlf03.png
8. You will see the Command line.
send-crlf04.png
9. About Rainmeter window > Skins tab, right-click on the VAR and select Copy to clipboard.
If you can't see the VAR, close the About Rainmeter window then open it again.
send-crlf05.png
10. Paste to a text editor, you will see the actual value.
send-crlf06.png
You do not have the required permissions to view the files attached to this post.
[Rainmeter]
Update=-1
AccurateText=1
[Variables]
[msRunCommand]
Measure=Plugin
Plugin=RunCommand
Program=""#PROGRAMPATH#Rainmeter.exe""
Parameter=[!SetVariable VAR "1#CRLF#2" "#CURRENTCONFIG#"]
[mtString1]
Meter=String
Text=Onett
Antialias=1
SolidColor=333333FF
FontColor=FFFFFFFF
FontSize=16
Padding=4,0,4,0
LeftMouseUpAction=[!CommandMeasure msRunCommand "Run"]
;; This will create a new process (with wrong parameters?), so I don't use.
;LeftMouseUpAction=["#PROGRAMPATH#Rainmeter.exe" "SomeParameters"]
This is because the Parameter option is read by Rainmeter and already resolved before being sent as a parameter.
This isn't a bug since #variables# have no context outside of a skin.
Inside Rainmeter, regular #variables# are parsed and replaced when an option is read. Since you are sending in a variable outside of Rainmeter, there is no parsing.
Brian wrote: ↑October 3rd, 2021, 7:58 pm
This isn't a bug since #variables# have no context outside of a skin.
Inside Rainmeter, regular #variables# are parsed and replaced when an option is read. Since you are sending in a variable outside of Rainmeter, there is no parsing.