Awesome work smurfier! That is brilliant. I smacked myself in the forehead a couple times while reading through your work... I can't believe I never thought to hide the songtitle while WA is inactive... that's a great addition. AND THE BARS WORK! Just like I was hoping! Fantastic stuff my friend, thank you so much for all your help, it really helped me to understand min/max and I think I'm starting to grasp calcs and formulas. Cheers mate, thanks a ton!
Cryo - thanks, I think you helped me to wrap my mind around the concepts
Wald - feel free to use as you will mate, no worries
Varelse - your formulas are what clicked it for me, I really appreciate you taking the time. Cheers!
Awesomesauce. Thanks everyone for helping me out!
I'll update that post in my junk thread with this great new version soon.
It is currently May 4th, 2024, 7:48 pm
Combining Roundline and Bar meters... stuck in the mud!
-
- Posts: 271
- Joined: February 16th, 2011, 12:46 am
- Location: California
-
- Posts: 1175
- Joined: June 9th, 2010, 5:56 pm
- Location: Locks heath, UK
Re: Combining Roundline and Bar meters... stuck in the mud!
0.25/0.50/0.75/1.0 don't act like 25%, 50%, 75% & 100% in my current experiment:Varelse wrote:Here's a way that I did it on one of my skins:
The decimals are the percentage that you want the break between meters to be at.Code: Select all
[MeasurePositionBar] Measure=Plugin Plugin=Plugins\iTunesPlugin.dll Command=GetPlayerPositionPercent MaxValue=100 [MeasureTimeP1] Measure=Calc Formula=(MeasurePositionBar/100) < 0.125 ? (MeasurePositionBar/100) : 0.125 MinValue=0 MaxValue=0.125 [MeasureTimeP2] Measure=Calc Formula=((MeasurePositionBar/100) > 0.125) || ((MeasurePositionBar/100) <0.5) ? (MeasurePositionBar/100) : 0.50 MinValue=0.125 MaxValue=0.50 [MeasureTimeP3] Measure=Calc Formula=((MeasurePositionBar/100) > 0.50) || ((MeasurePositionBar/100) <0.625) ? MeasurePositionBar/100 : 0.625 MinValue=0.5 MaxValue=0.625 [MeasureTimeP4] Measure=Calc Formula= MeasurePositionBar/100 > 0.625 ? MeasurePositionBar/100 : 0 MinValue=0.625 MaxValue=1.0
-
- Moderator
- Posts: 1931
- Joined: January 29th, 2010, 1:43 am
- Location: Willmar, MN
Re: Combining Roundline and Bar meters... stuck in the mud!
Let's try something simple first....
Code: Select all
[MeasurePositionBar]
Measure=Plugin
Plugin=NowPlaying.dll
MediaPlayer=[mPlayer]
MediaType=POSITION
[MeasureTimeP1]
Measure=Calc
Formula=MeasurePositionBar
MinValue=0
MaxValue=25
[MeasureTimeP2]
Measure=Calc
Formula=MeasurePositionBar
MinValue=25
MaxValue=50
[MeasureTimeP3]
Measure=Calc
Formula=MeasurePositionBar
MinValue=50
MaxValue=75
[MeasureTimeP4]
Measure=Calc
Formula= MeasurePositionBar
MinValue=75
MaxValue=100
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
-
- Posts: 1175
- Joined: June 9th, 2010, 5:56 pm
- Location: Locks heath, UK
Re: Combining Roundline and Bar meters... stuck in the mud!
That now does 7% per side, i.e 28% = all 4 full...
/me SMASHES HEAD ON KEYBOARD
Before:
[MeasurePositionBar]
Measure=Plugin
Plugin=NowPlaying.dll
MediaPlayer=[mPlayer]
MediaType=POSITION
After:
[MeasurePositionBar]
Measure=Plugin
Plugin=NowPlaying.dll
MediaPlayer=[mPlayer]
MediaType=PROGRESS
Both calcs good, however yours makes way more sense to my tiny brain and is now in use. Wrong measure replacement fixes it totally...
/me SMASHES HEAD ON KEYBOARD
Before:
[MeasurePositionBar]
Measure=Plugin
Plugin=NowPlaying.dll
MediaPlayer=[mPlayer]
MediaType=POSITION
After:
[MeasurePositionBar]
Measure=Plugin
Plugin=NowPlaying.dll
MediaPlayer=[mPlayer]
MediaType=PROGRESS
Both calcs good, however yours makes way more sense to my tiny brain and is now in use. Wrong measure replacement fixes it totally...
Last edited by Seahorse on May 9th, 2011, 4:25 pm, edited 2 times in total.
-
- Moderator
- Posts: 1931
- Joined: January 29th, 2010, 1:43 am
- Location: Willmar, MN
Re: Combining Roundline and Bar meters... stuck in the mud!
Could you please post your entire code so I may test.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
-
- Posts: 1175
- Joined: June 9th, 2010, 5:56 pm
- Location: Locks heath, UK
Re: Combining Roundline and Bar meters... stuck in the mud!
Current iteration below Trying to understand why the repeat/shuffle button have vanished - got to read up on "GROUP" from the "Group=Player" in [MeterToggleRepeat] & [MeterToggleShuffle] and see if that is the cause...
You do not have the required permissions to view the files attached to this post.
-
- Moderator
- Posts: 1931
- Joined: January 29th, 2010, 1:43 am
- Location: Willmar, MN
Re: Combining Roundline and Bar meters... stuck in the mud!
Are you intending to use WinAmp or iTunes? iTunes seems to be working just fine.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
-
- Posts: 1175
- Joined: June 9th, 2010, 5:56 pm
- Location: Locks heath, UK
Re: Combining Roundline and Bar meters... stuck in the mud!
Foobar for me, but the plugin should mean works with all once I strip the last of the winamp specific bits. Going to sort the buttons next...
-
- Moderator
- Posts: 1931
- Joined: January 29th, 2010, 1:43 am
- Location: Willmar, MN
Re: Combining Roundline and Bar meters... stuck in the mud!
My favorite way to do buttons right now...
Code: Select all
[NormalState]
Group=Button
MouseOverAction=!Execute [!RainmeterToggleMeterGroup Button][!RainmeterRedraw]
[HoverState]
Group=Button
;Use the Up action so your mouse action doesn't interfere with dragging the skin.
LeftMouseUpAction=Whatever
MouseLeaveAction=!Execute [!RainmeterToggleMeterGroup Button][!RainmeterRedraw]
Hidden=1
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
-
- Posts: 271
- Joined: February 16th, 2011, 12:46 am
- Location: California
Re: Combining Roundline and Bar meters... stuck in the mud!
You can probably get rid of the Group=Player tags without hurting the skin... I just had those in there because I was hiding the entire 'music' skin when the 'system' skin or other was activated.
I think the source of your main problem with those buttons is their Hidden=1 status.
If you use Groups to Toggle and Hide certain elements, you have to make sure you're not bugging the skin when you redraw (refresh) it.
With Repeat and Shuffle, since those two require that the music player is active so as to measure their state, they can get a little buggy (at least for WinAmp). Double-check the Measures with !Rainmeter actions to insure the Repeat/Shuffle buttons are active when they're supposed to be, and verify that WinAmp is being measured for Repeat/Shuffle status.
You might find a better way to implement those buttons with the new Plugin... but those are the issues I ran into.
Hope it works out for you!
Cheers,
//JoBu
I think the source of your main problem with those buttons is their Hidden=1 status.
If you use Groups to Toggle and Hide certain elements, you have to make sure you're not bugging the skin when you redraw (refresh) it.
With Repeat and Shuffle, since those two require that the music player is active so as to measure their state, they can get a little buggy (at least for WinAmp). Double-check the Measures with !Rainmeter actions to insure the Repeat/Shuffle buttons are active when they're supposed to be, and verify that WinAmp is being measured for Repeat/Shuffle status.
You might find a better way to implement those buttons with the new Plugin... but those are the issues I ran into.
Hope it works out for you!
Cheers,
//JoBu