The idea is to kill the "misbehaving" top processes (CompatTelRunner, SoftwareReporterTool, etc.) on middle click. I had to use the PID approach since bare process name wouldn't yield the extension required by the taskkill parameter. Now, that works well, except the PID for Chrome instances are way off, compared to what's reported in Windows' PerfMon.msc (either 0 or 6 digit PID instead 4 digit one like reported by PerfMon.msc in the 2nd row from the screenshot below): P.S. This goes for non-indexed instances of Chrome, i.e. bare process name.
Code: Select all
[Variables] [Rainmeter] Update=1000 DynamicWindowSize=1 AccurateText=1 BackgroundMode=2 SolidColor=47,47,47,255 ---Measures--- [KillTopProcessID] Measure=Plugin Plugin=RunCommand Parameter=taskkill /F /PID [TopProcessID:] State=Hide OutputType=ANSI Timeout=5000 DynamicVariables=1 [TopProcessName] Measure=Plugin Plugin=UsageMonitor Alias=CPU Index=1 Rollup=0 DynamicVariables=1 [TopProcessValue] Measure=Calc Formula=TopProcessName [TopProcessID] Measure=Plugin Plugin=UsageMonitor Category=Process Counter=ID Process Name=[TopProcessName] DynamicVariables=1 ---Meters--- [TopProcess] Meter=String FontColor=255,255,255,255 FontFace=Consolas FontSize=16 AntiAlias=1 Text="Name = [TopProcessName]#CRLF#CPU = [TopProcessValue:2]#CRLF#PID = [TopProcessID:]#CRLF##CRLF#MClick Kill" MiddleMouseUpAction=[!UpdateMeasure KillTopProcessID][!CommandMeasure KillTopProcessID "Run"] DynamicVariables=1