Killing by hand and then looking in the written STDOUT, redirected with OutputFile, shows that the command was run sucessfully.
I'm not really seeing the problem. Maybe someone can help.
For testing I'm using the standard example from the rainmeter docs of RunCommand, with an adapted "MeasureRun".
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[MeasureRun]
Measure=Plugin
Plugin=RunCommand
Program=PowerShell.exe
Parameter=-NoProfile -ExecutionPolicy Bypass -NonInteractive -Command "echo '123'"
State=Hide
OutputType=ANSI
OutputFile=#CURRENTPATH#stdout.txt
[MeterRun]
Meter=String
FontSize=11
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Text=Click to Run
LeftMouseUpAction=[!CommandMeasure MeasureRun "Run"]
[MeterResult]
Meter=String
MeasureName=MeasureRun
Y=10R
FontSize=14
FontColor=255,255,255,255
AntiAlias=1