I am new to Rainmeter and seeking help with something, I have Modified a particular skin, refining its functionality but ran into an issue, I would like to be able to have the particular skin start up with an application as well as terminate when the app is closed but do not know how to do this despite my efforts, I keep crashing. Example; Waveline that is used with media players, is there a way to get the particular skin to auto start and terminate when I start the the media player and then exit..
as I said. I'm new to all this and would appreciate any advice.
Thanks
It is currently March 29th, 2024, 7:56 am
auto start/terminate skin with application
-
- Posts: 1
- Joined: January 23rd, 2018, 4:31 pm
-
- Developer
- Posts: 22628
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: auto start/terminate skin with application
Generally speaking, you will need to be running some other skin that manages this. It can be entirely invisible, as its only job would be to watch for the presence of your media player running, and if so, open some skin, or if not, close some skin. Just have this skin running all the time, and it will control things for you.
https://docs.rainmeter.net/manual/plugins/process/
https://docs.rainmeter.net/manual/measures/general-options/ifconditions/
https://docs.rainmeter.net/manual/bangs/#ActivateConfig
https://docs.rainmeter.net/manual/bangs/#DeactivateConfig
You could also just stick that entire [MeasureWatcher] measure into some other skin that you already run all the time. Up to you.
The media player skin itself can't do this, as while it can detect that the media player process isn't running and can kill itself, it obviously can't detect that the media player process has started because... It's dead, Jim. It's like expecting "Ok Google, turn on my phone" to work...
Code: Select all
[Rainmeter]
Update=1000
OnRefreshAction=[!Move "0" "0"]
[MeasureWatcher]
Measure=Plugin
Plugin=Process
ProcessName=Winamp.exe
IfCondition=MeasureWatcher = 1
IfTrueAction=[!ActivateConfig "SoundLevelBitmap" "SoundLevel.ini"]
ifCondition2=MeasureWatcher = -1
IfTrueAction2=[!DeactivateConfig "SoundLevelBitmap"]
[MeterDummy]
Meter=String
https://docs.rainmeter.net/manual/measures/general-options/ifconditions/
https://docs.rainmeter.net/manual/bangs/#ActivateConfig
https://docs.rainmeter.net/manual/bangs/#DeactivateConfig
You could also just stick that entire [MeasureWatcher] measure into some other skin that you already run all the time. Up to you.
The media player skin itself can't do this, as while it can detect that the media player process isn't running and can kill itself, it obviously can't detect that the media player process has started because... It's dead, Jim. It's like expecting "Ok Google, turn on my phone" to work...