Thank you for your thorough help!
I am using this plugin:
https://github.com/JarateKing/Powershell-Rainmeter/tree/master
And this was my code earlier, i should have attach it already, sorry for that!
Ofcourse the "quit" command doesn't work, since its a never ending process, but a skin refresh kills the powershell process.
By this version, it works (also as you mentioned):
With the RunCommand plugin usage, i never get the String meter to display the results as the commandline updates, neither with powershell usage only after the PS or cmd terminates.
But with that plugin, it display in the String meter as if it would be a direct PowerShell window.
I am not good with PowerShell either, my first time try
I am using this plugin:
https://github.com/JarateKing/Powershell-Rainmeter/tree/master
And this was my code earlier, i should have attach it already, sorry for that!
Code:
[Rainmeter]Update=1000AccurateText=1[Variables];[MeasureRun];Measure=Plugin;Plugin=RunCommand;Program=PowerShell;Parameter="ping -t 8.8.8.8";State=Hide;OutputType=ANSI;OutputFile=#CURRENTPATH#latency_log.txt;RegExpSubstitute=1;Substitute="\s+#CRLF#":""[mCmd]Measure=PluginPlugin=Powershell.dllType=StringLineMax=5[BaseBackground]Meter=ImageSolidColor=0,0,0X=0Y=0W=560H=530LeftMouseUpAction=[!CommandMeasure mCmd "ping -t 8.8.8.8 | ForEach {"{0} - {1}" -f (Get-Date),$_}"]MiddleMouseUpAction=[!CommandMeasure mCmd "quit"][OutputText]Meter=STRINGMeasureName=mCmdX=5Y=5FontColor=255,255,255FontSize=12AntiAlias=1Text="%1"ClipString=1
By this version, it works (also as you mentioned):
Code:
[BaseBackground]Meter=ImageSolidColor=0,0,0X=0Y=0W=560H=530LeftMouseUpAction=[!CommandMeasure mCmd "ping -t 8.8.8.8"]
But with that plugin, it display in the String meter as if it would be a direct PowerShell window.
I am not good with PowerShell either, my first time try
Statistics: Posted by rbriddickk84 — Today, 1:15 pm