Page 1 of 1

Hiding music player when not in use.

Posted: December 3rd, 2020, 7:22 am
by mohan
Hi, Im new to rainmeter I'm using a mond skin specifically player, I'm using it with windows media player. I wan't to hid the player when not in use i.e When ever the windows media player is not open the skin must stay hidden and as soon as i open the wmp, the skin to display. Is ther any way to acheive this?
Here is the link to skin https://visualskins.com/skin/mond'
I have attached the code.
Any help will be appericiated Thank you.

Re: Hiding music player when not in use.

Posted: December 3rd, 2020, 8:24 am
by balala
mohan wrote: December 3rd, 2020, 7:22 am Is ther any way to acheive this?
Yep, there is. Just add the following measure to your code:

Code: Select all

[MeasureStatus]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=STATUS
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!ShowFade]
IfFalseAction=[!HideFade]
The above measure, with the PlayerType=STATUS option returns 1 when the player is active (open) and 0 otherwise. So, while you have the player active the measure returns 1 and accordingly you get executed the IfTrueAction. Its [!ShowFade] bang shows the skin. When on the other hand you unload (close) the player, the measure turns 0, and you get executed the IfFalseAction and through its [!HideFade] bang, you get the skin hidden.
Note that this way, even if the skin is hidden, it still is loaded, just not visible, so it still consumes resources (obviously not too much, but not zero).

Re: Hiding music player when not in use.

Posted: November 14th, 2022, 6:09 pm
by ashutosh.02
Thank you, it worked for me! :)

Re: Hiding music player when not in use.

Posted: November 14th, 2022, 6:16 pm
by balala
ashutosh.02 wrote: November 14th, 2022, 6:09 pm it worked for me!
:thumbup:

Re: Hiding music player when not in use.

Posted: January 17th, 2023, 11:40 pm
by Rythalion
So i'm very new to this, where would I be putting this code into? I'd really like the media player gone entirely off of Rainmeter (Mond) as I won't use it. I am not even sure if that's what the other guy was asking for but idk.

Re: Hiding music player when not in use.

Posted: January 18th, 2023, 1:10 pm
by balala
Rythalion wrote: January 17th, 2023, 11:40 pm So i'm very new to this, where would I be putting this code into? I'd really like the media player gone entirely off of Rainmeter (Mond) as I won't use it. I am not even sure if that's what the other guy was asking for but idk.
If you have downloaded the Mond package, you have to add the above measure anywhere into the Mond\Player\Player.ini file. Don't forget to refresh the skin. By adding this, you get the skin hidden when there is nothing to play and shown when the player is playing. Not sure what you mean by "gone entirely off", but the measure hides the skin, doesn't deactivate (close) it. If you deactivate it, it won't be reactivated once the player starts playing.