Hi,
how to make autoShow music cover when music plays and autohide it when music is closed.
i want to make it like this:
When music not playing /closed
when music plays
and how to add fade effect in it?
It is currently May 21st, 2024, 2:18 pm
autoShow music cover when music plays and autohide it when..
-
- Posts: 43
- Joined: August 17th, 2012, 9:06 am
autoShow music cover when music plays and autohide it when..
You do not have the required permissions to view the files attached to this post.
Last edited by apit23 on September 9th, 2012, 4:52 am, edited 1 time in total.
-
- Posts: 608
- Joined: February 7th, 2011, 7:27 pm
- Location: Thessaloniki, GR
Re: autoShow music cover when music plays and autohide it wh
You will need the PlayerType=STATUS from the NowPlaying plugin (if you are using another plugin for music, really consider changing to NowPlaying) and you can use Kaelri's script for the fade effects.
-
- Posts: 43
- Joined: August 17th, 2012, 9:06 am
Re: autoShow music cover when music plays and autohide it wh
i don't understand much. do you mean this?
and what to add?
-
- Rainmeter Sage
- Posts: 889
- Joined: September 6th, 2011, 6:34 am
Re: autoShow music cover when music plays and autohide it wh
Without the fading script you might do something like this:
Of course this is not all. You probably need to move some meters as well etc. but it's the basic idea.
If you want to use the Fade script, you'll have to add a Script measure and call it's functions like described in Kaelri's post.
Code: Select all
[Player]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=WMP
PlayerType=STATUS
IfAboveValue=0
IfAboveAction=!ShowMeterGroup Cover
IfBelowValue=1
IfBelowAction=!HideMeterGroup Cover
If you want to use the Fade script, you'll have to add a Script measure and call it's functions like described in Kaelri's post.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
-
- Posts: 43
- Joined: August 17th, 2012, 9:06 am
Re: autoShow music cover when music plays and autohide it wh
the code works for iTunes. But for the WMP, after WMP closed, it still reading the ID3 tags. is it bugs?
and for the transition effect,
why !Hide/ShowFade not working for me? i used FadeDuration=100 (is it correct?)
i want to use the Kaelri's but i'm confused.can you some example of using FadeIn/Out
and for the transition effect,
why !Hide/ShowFade not working for me? i used FadeDuration=100 (is it correct?)
i want to use the Kaelri's but i'm confused.can you some example of using FadeIn/Out
-
- Rainmeter Sage
- Posts: 889
- Joined: September 6th, 2011, 6:34 am
Re: autoShow music cover when music plays and autohide it wh
!Hide/ShowFade are bangs that apply to whole skins, not meters. If you want to fade in single meters you need to use Kaelri's script. I've never used it so I'm not the ideal person to tell you how it works.
For WMP: are you sure it's actually closed and not hidden into the system tray or something like that? I don't use WMP so I've no experience with it.
For WMP: are you sure it's actually closed and not hidden into the system tray or something like that? I don't use WMP so I've no experience with it.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
-
- Posts: 43
- Joined: August 17th, 2012, 9:06 am
Re: autoShow music cover when music plays and autohide it wh
oh, i hope someone could show some examples.
the WMP is closed and i very sure about that.
usually it was not like that,but it happens when i used the PlayerType=STATUS.
I think so.
the WMP is closed and i very sure about that.
usually it was not like that,but it happens when i used the PlayerType=STATUS.
I think so.
-
- Posts: 608
- Joined: February 7th, 2011, 7:27 pm
- Location: Thessaloniki, GR
Re: autoShow music cover when music plays and autohide it wh
Check InterfaceLIFTer Smooth for a skin example. I 've never used it either, so I can't be more specific, sorry.
As for the WMP, I sometimes get that "bug", too. Check if wmplayer.exe is still running in the background, when that occurs. In my case, it's a WMP hiccup I have to endure (and it is solved only after restarting Rainmeter).
As for the WMP, I sometimes get that "bug", too. Check if wmplayer.exe is still running in the background, when that occurs. In my case, it's a WMP hiccup I have to endure (and it is solved only after restarting Rainmeter).
-
- Developer
- Posts: 1721
- Joined: July 25th, 2009, 4:47 am
Re: autoShow music cover when music plays and autohide it wh
Using the Transitions script takes some setup. I'll try to boil the steps down as best I can:
1) Download the script from this thread. Put the "Transition.lua" file in your skin folder, and add the script measure:
2) Set your skin's Update speed to about 50. This will affect the entire skin, so you need to add a corresponding UpdateDivider to all meters and measures that are not part of the fade effect. The easiest way to do this is with a variable. For example:
Again, the UpdateDivider=(1000/#UpdateSpeed#) option must be added to everything except the meters that you want to fade in/out.
3) Create a variable for the transparency of your meters, starting at 255 (fully opaque).
How you use this in each meter depends on the meter type. For example, if you have an image from a file, you would use ImageAlpha=#CoverTransparency#. A solid-color image meter would be more like SolidColor=128, 192, 217, #CoverTransparency#. For a string meter, you'd want to change the font color transparency, like FontColor=128, 192, 217, #CoverTransparency#. (Reminder: these are all just examples. You will need to use values appropriate to the meters in your skin.)
You also need to add DynamicVariables=1 to those same meters.
4) You can now add the FadeIn/FadeOut command to your Player measure, like Merlin showed you.
1) Download the script from this thread. Put the "Transition.lua" file in your skin folder, and add the script measure:
Code: Select all
[Transition]
Measure=Script
ScriptFile=Transition.lua
Code: Select all
[Rainmeter]
Update=#UpdateSpeed#
[Variables]
UpdateSpeed=50
[Player]
Measure=Plugin
Plugin=NowPlaying
PlayerName=WMP
PlayerType=STATUS
UpdateDivider=(1000/#UpdateSpeed#)
3) Create a variable for the transparency of your meters, starting at 255 (fully opaque).
Code: Select all
[Variables]
CoverTransparency=255
You also need to add DynamicVariables=1 to those same meters.
4) You can now add the FadeIn/FadeOut command to your Player measure, like Merlin showed you.
Code: Select all
[Player]
Measure=Plugin
Plugin=NowPlaying
PlayerName=WMP
PlayerType=STATUS
UpdateDivider=(1000/#UpdateSpeed#)
IfAboveValue=0
IfAboveAction=!CommandMeasure Transition "FadeIn('Cover', 'CoverTransparency')
IfBelowValue=1
IfBelowAction=!CommandMeasure Transition "FadeOut('Cover', 'CoverTransparency')
-
- Posts: 43
- Joined: August 17th, 2012, 9:06 am
Re: autoShow music cover when music plays and autohide it wh
i've tried , but i didn't understand it fully.
So here my .ini
the red is the meter needed to be fade in/out.
so, can you please help me figure it? sorry if it quite confusing.
So here my .ini
so, can you please help me figure it? sorry if it quite confusing.