I wrote a visualizer monitoring skin that will cure this problem and
remove all resources drain by any visualizer when your selected media player is not running.
You need to set your media player executable, the Config Name of your visualizer (that is the folder it is located in), and the visualizer skin name, in the [Variables] section of this code. Save it in a new folder in your skin folder. Refresh All in Rainmeter. Now load the skin.
You will not see anything on the screen.
Open your media player, you will still only see your player.
Now play an audio... the Lano Visualizer will load and display.
When you close your media player, the Lano Visualizer will unload after a few seconds.
With this skin running in the background, anytime your media player is active, the associated visualizer will load.
Closing your media player will unload the associated visualizer.
I saved this as: AudioVisualizerMonitor.ini
Code: Select all
[Variables]
PlayerExecutable=winamp.exe
VisualizerConfigName=Lano Visualizer\Visualizer
VisualizerSkinName=Visualizer.ini
[Metadata]
Name=Audio Visualizer Monitor
Author=Eclectic Tech
Information=Monitors your media player process and only activates a specified visualizer config when the player is active. Run this invisible skin all the time and it will load/unload your visualizers without you having to touch anything.
License=CC BY-NC-SA 3
Version=1.2018.04.07
[MeasureProcess]
Measure=Plugin
Plugin=Process
ProcessName=#PlayerExecutable#
; Substitute="-1":"not running","1":"running"
IfCondition=(MeasureProcess<>1)
IfTrueAction=[!DeactivateConfig "#VisualizerConfigName#"]
IfFalseAction=[!ActivateConfig "#VisualizerConfigName#" "#VisualizerSkinName#"]
[MeterDummy]
Meter=String