My skin runs fine, but having the same error in log, every couple seconds:
Error 101: Program still running: powershell.exe
I know where it happens ([MeasureBrightness]), I think know what happens (The skin updates before commands return termination signals, if they do at all), but I don't know a lot about powershell, or Windows programming itself, so I'm not sure where this could be fixed. Any idea?Here's the relevant code :
Code: Select all
[Rainmeter]
OnUpdateAction=[!CommandMeasure MeasureBrightness "Run"]
[MeasureBrightness]
Measure=PLUGIN
Plugin=RunCommand
Program=powershell.exe
Parameter=Get-Ciminstance -Namespace root/WMI -ClassName WmiMonitorBrightness | findstr "Bright"
OutputType=ANSI
RegExpSubstitute=1
Substitute="CurrentBrightness : (\d+)#CRLF#":"\1"
FinishAction=[!SetOption MeasureBrightnessPercent Formula [MeasureBrightness]][!UpdateMeasure MeasureBrightnessPlus][!UpdateMeasure MeasureBrightnessMinus]
(Will work on a Windows 10 laptop ONLY)