HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: borgusiek on 2007-08-05 15:10:07

Title: foo_uie_powerpanels
Post by: borgusiek on 2007-08-05 15:10:07
PowerPanels for Foobar2000 v0.9+

PowerPanels consists of a two panels designed for Panels UI: seek panel & volume panel.

These are transparent panels which you can put in other panels
over your custom drawn progress and/or volume bar
and change playback position and volume by simply clicking on them
instead of using default seek and volume toolbars.

I have prepared brief description how to use it so I won't be duplicating it here.

More info and download at: http://borgusiek.neostrada.pl/foobar (http://borgusiek.neostrada.pl/foobar)
Title: foo_uie_powerpanels
Post by: jclim00 on 2007-08-05 15:36:39
Very cool!
Title: foo_uie_powerpanels
Post by: Kiteroa on 2007-08-05 15:43:48
Thanks - works well; does a great job!
Title: foo_uie_powerpanels
Post by: FofR on 2007-08-05 17:43:59
Works like a charm, very nice
Title: foo_uie_powerpanels
Post by: carmenm on 2007-08-05 18:25:09
This plugin is really good but i have one problem and one feature request.
problem : We only have a way (with panelsUi) to redraw on a per second base, so this is not really enough to use with a seekbar or volumebar, especially if you manage to implement this feature request:
The ability to "drag" the cursor on the seekbar, i mean keep mouse clicked and move on the panel.

EDIT : forget what i said about the redraw problem. Seems to work perfectly in track display. Just the feature request matters now 

Huge component
Title: foo_uie_powerpanels
Post by: cristox on 2007-08-05 18:47:09
This makes it perfect now!
Title: foo_uie_powerpanels
Post by: YounhaLOV on 2007-08-06 01:55:41
(http://www.playnow.co.kr/link/300c2350194f9/fooo.jpg)

really thank you Borqusiek^^

great component
Title: foo_uie_powerpanels
Post by: Nickoladze on 2007-08-06 15:56:21
Very cool
Title: foo_uie_powerpanels
Post by: store88 on 2007-08-07 13:30:30
@borgusiek Can you make the plugins work without panelUI

just with columnUI
Title: foo_uie_powerpanels
Post by: carmenm on 2007-08-07 13:39:31
@borgusiek Can you make the plugins work without panelUI

just with columnUI

I dont see how this would be possible, You would just have a blank panel... No way to put an image under it.
Title: foo_uie_powerpanels
Post by: The Judge on 2007-08-07 16:01:59
Haven't given this a try yet but this was the last thing I needed to perfect my config. Hope it's more stable than WSH panel . Will report back in a bit.

EDIT: I love you. Lol. It works like a phatty
Title: foo_uie_powerpanels
Post by: BLaZor on 2007-08-07 16:07:31
can you use images too just like using js in wsh panels?
Title: foo_uie_powerpanels
Post by: carmenm on 2007-08-07 16:20:40
can you use images too just like using js in wsh panels?

Yes you can use image, but it wont be this plugins which will display them. You need to understand how powerpanels work. I just create a transparent clickable seekbar. You have to draw(with panelsUI) the images that will appear in coordination with the seekbar position.(depending on the volume or position in the track)
Title: foo_uie_powerpanels
Post by: BLaZor on 2007-08-07 16:27:06

can you use images too just like using js in wsh panels?

Yes you can use image, but it wont be this plugins which will display them. You need to understand how powerpanels work. I just create a transparent clickable seekbar. You have to draw(with panelsUI) the images that will appear in coordination with the seekbar position.(depending on the volume or position in the track)


got an example?

"$panel(SeekPanel,Seek Panel,xpos,ypos,width,height,)" works but not too sure how the images would work.
Title: foo_uie_powerpanels
Post by: Taish on 2007-08-07 16:47:49
Thanks works great
Title: foo_uie_powerpanels
Post by: The Judge on 2007-08-07 16:57:47
can you use images too just like using js in wsh panels?
Yes you can use image, but it wont be this plugins which will display them. You need to understand how powerpanels work. I just create a transparent clickable seekbar. You have to draw(with panelsUI) the images that will appear in coordination with the seekbar position.(depending on the volume or position in the track)

got an example?

"$panel(SeekPanel,Seek Panel,xpos,ypos,width,height,)" works but not too sure how the images would work.


You'd have to have an imageabs in your PerSecond section of your PUI

Something like:
Code: [Select]
$imageabs2($sub($muldiv($sub(%_width%,24),%playback_time_seconds%,%length_seconds%),2),9,,,,,25,,/images\test4.png,NOKEEPASPECT)


That would 'stretch' the image across the whole seekbar as it were.

If you want a 'button' as it were you'd just put the relevant %playback_time_seconds% code in the Xpos part of the imageabs function.
Title: foo_uie_powerpanels
Post by: BLaZor on 2007-08-07 17:19:08
Nice, although instead of streching an image, could I add it to the end like in this pic: http://img368.imageshack.us/my.php?image=legendpr8.png (http://img368.imageshack.us/my.php?image=legendpr8.png)

say I have start.gif which is "(", middle which is "." and end which is ")"
"(" would be fixed whilst "." stretches and ")" comes at the end?
Title: foo_uie_powerpanels
Post by: borgusiek on 2007-08-08 21:09:09
Glad you like the panels, for me that was the missing part to make foobar (almost) perfect

I think the nice addition would be the ability to use mouse wheel to change volume when cursor is over the volume panel, however I can't make it work, the panel simply doesn't get mouse wheel messages 

I'm sorry, the column ui version which draws something in the panel has never been seriously considered...
The idea is like that: you draw whatever, however and wherever you want and cover it with the panel which makes that thing alive
Title: foo_uie_powerpanels
Post by: BelleAndZEK on 2007-08-08 23:26:57
been waiting for this for so long. I didn't try it yet. I'll do it later tonight, but thanks in advance. It was about time someone does it. Thanks again!

edit: it works like a charm! thanks x1000
Title: foo_uie_powerpanels
Post by: cristox on 2007-08-09 21:39:55
It does not work well with Panels UI 0.14.12 beta.
For example it makes trouble with %_trackinfo_notrack%.
Title: foo_uie_powerpanels
Post by: Faveris on 2007-08-12 18:47:08
It is the plugin i was waiting  Thanks! But I have a one problem with it: I can't reach maximum volume using Volume Panel. Width of the panel doesn't matters, I can set only 99% volume with a maximum width of the panel.
Title: foo_uie_powerpanels
Post by: radecke on 2007-08-12 21:49:19
thanks for this great plugin. now i finally have a good looking clickable seek bar
Title: foo_uie_powerpanels
Post by: Keikonium on 2007-08-21 22:30:45
Would I beable to get some code for a seekbar please? The code I am using now is screwed up:

Code: [Select]
//==========
// PerSecond
//==========
//IMAGE CODE FOR MY SEEK PANEL
$puts(seeksize,320)
$puts(seekX,320)
$puts(seekY,22)
$puts(SEEKdir,'C:\Program Files\foobar2000\FoOrby\buttons\powerpanels\seekbar')
$imageabs2($get(seeksize),13,,,,,$get(seekX),$get(seekY),$get(SEEKdir)\seek_back.png,nokeepaspect)
$ifgreater(%playback_time_seconds%,0,
$imageabs2($get(seeksize),13,,,%playback_time_seconds%,,$get(seekX),$get(seekY),
$get(SEEKdir)\seek_fore.png,nokeepaspect),)
//---------------------------------------------

//==========
// PerTrack
//==========
$panel(SeekPANEL,Seek Panel,$get(seekX),$get(seekY),$get(seeksize),20,)


Can someone help me make this work?
Title: foo_uie_powerpanels
Post by: Keikonium on 2007-08-24 06:29:43
Anyone willing to help? If I can get some working code, I can mod it to my needs .
Title: foo_uie_powerpanels
Post by: Spirit_of_the_ocean on 2007-08-24 10:34:15
Anyone willing to help? If I can get some working code, I can mod it to my needs .


So I give you some 
Hope I got it right out of my code:
In Panel ui settings:
Quote
$panel(CustomizableSeekbar,Track Display,700,90,310,20,)
$panel(SeekPanel,Seek Panel,700,90,310,20,)

Track Display contains:

Quote
// PerSecond
$drawrect(2,3,$sub(%_width%,4),8,brushcolor-0-0-0 pencolor-197-197-197)
$if(%isplaying%,
$puts(progress,$muldiv(%playback_time_seconds%,$sub(%_width%,8),%length_seconds%))
$ifgreater($get(progress),0,$padding(1,3)$drawrect(3,2,$get(progress),4,brushcolor-226-215-26 pencolor-nulll),))


This looks like this (the seekbar right on top):
(http://srv006.pixpack.net/_20070823093529416_exsbtrivzw.jpg) (http://pixpack.net/show/20070823091522473/zqhfhvhtnr)


Basically you have a track Display which only shows the seekbar. Then create a seekpanel which overlays the actual seekbarbar shower Track Diplay. To this is easier when you must give the right position of the invisible seekpanel.
Title: foo_uie_powerpanels
Post by: carmenm on 2007-08-24 13:42:57
I have some redraw problem with this plugin. While resizing foobar, the seek panel keeps flicking between white and transprent. Also sometime the panel is just white(happen often while in pause)
Title: foo_uie_powerpanels
Post by: DarkBlackCorner on 2007-08-24 14:11:00
niiice, I was always clicking on the progress bar image before, but now it actually does something!

A request for the future if it would be possible: could you allow sliding of the seekbar (right now it only allows single clicks)?  I'm guessing a similar implementaion would be useful for volume control users (though I personally don't use it).

Thanks, and good work
Title: foo_uie_powerpanels
Post by: Keikonium on 2007-08-24 18:12:12
Basically you have a track Display which only shows the seekbar. Then create a seekpanel which overlays the actual seekbarbar shower Track Diplay. To this is easier when you must give the right position of the invisible seekpanel.


Awesome!! Thank you so much for the help . I can take it from here now that I have some working code .
Title: foo_uie_powerpanels
Post by: Spirit_of_the_ocean on 2007-08-24 19:26:41
No problem. There was a user I can't remember who had this. So it wasn't my idea. But the idea was great. 
Just some informations to add:
When the powerpanel lays over the Track Display you can't edit the trackdisplay directly until you deactivate the powerpanel with // .
Title: foo_uie_powerpanels
Post by: Keikonium on 2007-08-24 19:37:51
I just do this to edit my panels nice and fast:
(http://img.photobucket.com/albums/v326/keikonium/settingsedit.png)
Title: foo_uie_powerpanels
Post by: Spirit_of_the_ocean on 2007-08-24 19:46:06
Thanks    Didn't know that.
Yes foobar is very complex and panel ui, too. It happens a lot that I overlook some options.

Okay thanks again 

Bye the way I named my seekbar customizable seekbar too 
Title: foo_uie_powerpanels
Post by: tool++ on 2007-08-28 11:48:23
I just have to say that this plugin is AWESOME
Title: foo_uie_powerpanels
Post by: spaceships on 2007-08-31 14:29:23
Is there anyway to have multiple instances of powerpanels?

I have two progress bars and the invisible seekbar only works for one of them. I would both of the progress bars to be clickable

Thanks.
Title: foo_uie_powerpanels
Post by: lhnz on 2007-09-09 09:58:06
The link is down?!
Title: foo_uie_powerpanels
Post by: Kirya on 2007-09-09 12:39:43
The link is down?!

no, http://borgusiek.neostrada.pl/foobar/ (http://borgusiek.neostrada.pl/foobar/) works fine for me
Title: foo_uie_powerpanels
Post by: gregory on 2007-09-09 18:14:29
i have a problem similar to carmenm's,

when i first play a track
the Track Display in which Seek Panel is located blinks white
the whole thing turns white --minus the actual area where the Seek Panel is, which remains transparent

great component, this was something i had looked for from the beginning, nice to see it happen
Title: foo_uie_powerpanels
Post by: montyview on 2007-09-14 17:06:38
Just a quick thanks for this component: works really well, and really cleans up the look of my config...

I'm a bit a n00bie, so sorry if this an obvious question: is it possible at present to configure it to show mouseover tooltips? I'm thinking it would be good to have precise info on the potential chosen volume level or time point in the track before clicking. If this can't be done yet, is this a feasible feature request?
Title: foo_uie_powerpanels
Post by: Kirya on 2007-09-22 00:21:47
little request:
is it possible to change onmouseover cursor?
Title: foo_uie_powerpanels
Post by: KnightMare on 2007-09-22 12:26:23
nice, thanks
Title: foo_uie_powerpanels
Post by: konakona on 2007-11-23 19:08:10
nvm, got it all sorted out. thanks!
Title: foo_uie_powerpanels
Post by: skyhopper88 on 2007-12-05 17:14:27
I'm trying to impliment this with FofR's config but having trouble. Here's what I have so far.

Code: [Select]
// * Progress Bar *
// ===========

//$ifequal($getpvar(panel.mode),1,,
[b]$panel(SeekPanel,Seek Panel,%_width%-8,%_height%-12,%_width%,%_height%,)[/b]
$ifequal($getpvar(nowplay.progress),0,,
$font(Small Fonts,$getpvar(IDfontLengthSize),fixedwidth$ifequal($getpvar(global.background),0,,shadow),$getpvar(IDfontSmallColor))
$alignabs(5,$eval(%_height%-26),$eval(%_width%-10),20,right,top)
$ifequal($getpvar(moredetails),0,$if(%isplaying%,%playback_time% / %length%)
$alignabs(5,$eval(%_height%-26),$eval(%_width%-10),20,left,top)
$upper([%genre% ][%year% ])
,)

// Check if length is 0, do not want to divide by a 0!
$ifequal(%length_seconds%,0,,
// Only draw when playing
    $if(%isplaying%,
        $padding($eval($get(textleft)+8),0)
        $puts(progress,$eval({%playback_time_seconds%*{%_width%-12}}/%length_seconds%))
        $ifgreater($get(progress),0,
//            $drawrect($eval($getpvar(globalcentrew)+2),$eval($getpvar(globaltopmargin)+7),$eval($getpvar(globalimgw)-2),1,brushcolor-null pencolor-0-0-0)
            $drawrect(4,$eval(%_height%-12),$eval(%_width%-8),10,brushcolor-null pencolor-$getpvar(nowplayborder) alpha-100)
            $drawrect(6,$eval(%_height%-10),$get(progress),6,brushcolor-$getpvar(IDprogbar) pencolor-$getpvar(IDprogbar) alpha-180)
//            $drawrect($eval($getpvar(globalcentrew)+2),$eval($getpvar(globaltopmargin)+1),$get(progress),3,brushcolor-$getpvar(nowplayfontcol) alpha-180 pencolor-$getpvar(nowplayfontcol))
//            $drawrect($eval($getpvar(globalcentrew)+1),$eval($getpvar(globaltopmargin)+8),$getpvar(globalimgw),1,brushcolor-null pencolor-$getpvar(nowplayborder))
        ,
        )
    )
)
)
//)
But it doesn't seem to respond. Assuming my added code is right, it may have something to do with the on click event to hide track data that might be superseding it, I don't really know. I can't seem to find what lines control that to troubleshoot it. Can anyone offer some advice?
Title: foo_uie_powerpanels
Post by: dRsrb on 2007-12-07 21:34:13
Great Plugin!

One request:
Seeking with held left mouse key (like volume, so I only need ones to press the left key)!

bye
Title: foo_uie_powerpanels
Post by: blaxima on 2007-12-19 03:45:41
I use a seekbar in my playlist so it moves to the song that is playing. Is it possible for the seekpanel to follow it or is it only going to work in a fixed position?
Title: foo_uie_powerpanels
Post by: Lucky Luciano on 2008-01-15 06:00:05
EDIT: nevermind!
Title: foo_uie_powerpanels
Post by: Smirra on 2008-03-26 19:37:39
Power Panels disables my hotkeys... T.T. I localized the problem bcuz when i remove the panel the hotkey function comes back... Global hotkeys still works but that's really unwanted from my part so i really need these hotkeys.

Code: [Select]
// PerSecond

$panel(Seekbar,Seek Panel,$eval({%_width%-620}/2),$add($getpvar(seekbar-h),2),620,14,)
$puts(progress,$muldiv(%playback_time_seconds%,620,%length_seconds%))
$ifgreater($get(progress),0,,$puts(progress,0))
$imageabs2(,,,,,,
$eval({%_width%-620}/2-620+$get(progress)),
$add($getpvar(seekbar-h),2),
%foobar_path%\images\Seekbar\seekbar.png,)
$drawrect(,
$getpvar(seekbar-h),
$eval({%_width%-620}/2),18,
brushcolor-$getpvar(bgcolor) pencolor-null)
$drawrect(
$eval(%_width%-{%_width%-620}/2),
$getpvar(seekbar-h),
$eval({%_width%-620}/2),18,
brushcolor-$getpvar(bgcolor) pencolor-null)
$imageabs2(,,,,,,
$eval({%_width%-624}/2),
$getpvar(seekbar-h),
%foobar_path%\images\Seekbar\border.png,)

$alignabs($eval({%_width%-624}/2),
$add($getpvar(seekbar-h),18),
624,16,,
middle)
$if(%isplaying%,%playback_time%)

$alignabs($eval({%_width%-624}/2),
$add($getpvar(seekbar-h),18),
624,16,
right,
middle)
$if(%isplaying%,-%playback_time_remaining%)
Title: foo_uie_powerpanels
Post by: antar3s on 2008-03-26 22:22:38
is it only a focus problem, ie do the hotkeys work again after clicking somewhere else in the panel?
i don't know if this is related, but i've been experiencing weird behaviour of panelsui when i used $panel in the PerSecond section. the seekbar will work just as fine if you put the $panel code in PerTrack or Background section.
Title: foo_uie_powerpanels
Post by: Smirra on 2008-03-26 23:21:42
is it only a focus problem, ie do the hotkeys work again after clicking somewhere else in the panel?
i don't know if this is related, but i've been experiencing weird behaviour of panelsui when i used $panel in the PerSecond section. the seekbar will work just as fine if you put the $panel code in PerTrack or Background section.

It's really strange! I tried what u said and thought it might work. But it works fine with other panels i can temporary change panel to what becomes a very tiny track display panel and the bug emmidiately dissapears...
Title: foo_uie_powerpanels
Post by: antar3s on 2008-03-27 00:14:37
But it works fine with other panels i can temporary change panel to what becomes a very tiny track display panel and the bug emmidiately dissapears...

Not sure I understood you right: you just change the powerpanel size and then it works? then i would guess it is rather a panelsui bug...
Title: foo_uie_powerpanels
Post by: Smirra on 2008-03-27 13:04:17

But it works fine with other panels i can temporary change panel to what becomes a very tiny track display panel and the bug emmidiately dissapears...

Not sure I understood you right: you just change the powerpanel size and then it works? then i would guess it is rather a panelsui bug...

No it is when i use the power panels like if u for example change
Code: [Select]
$panel(Seekbar,Seek Panel,,,,,)

to
Code: [Select]
$panel(Seekbar,Whatever-other-panel,,,,,)

It starts to work again... So the problem is in the Power Panels dll and not in the "$panel" command itself.
Really strange. And i have the $panel in the // PerTrack box and it still doesn't cooperate... T.T

EDIT:
As my friend could reproduce the error I have written a thorough bug report to the author of power panels!
Title: foo_uie_powerpanels
Post by: z-x on 2008-03-28 17:35:26
I can't set the volume to 100% with volume bar. It's always stuck at 99% or 98% and can't get more with sliding on the bar. Any ideas?
Title: foo_uie_powerpanels
Post by: Lucky Luciano on 2008-03-28 19:28:40
I was having the same problem. I'll probably add to the right of it a button similar in design with the progress bar and with which I could set the volume to 100%. Problem is I can't find a function for setting the volume at a certain value. I guess calling "Volume Up" once or twice would do it.
Title: foo_uie_powerpanels
Post by: Smirra on 2008-03-28 20:49:32
Can anyone check if they have the same problem with the hotkeys(not working) as me?
I use the latest foobar version in XP sp2.
Title: foo_uie_powerpanels
Post by: antar3s on 2008-03-28 23:58:16
@z-x
maybe making the panel bigger will help. think about it this way: if the panel is 50pixels you can probably only address 50 different volume settings...

@Smirra
also using XP SP2 and it works fine here.
sometimes i get hotkey problems, but not reproducable and that was already before i used powerpanels. and clicking in the scpl makes the hotkeys work again.
Title: foo_uie_powerpanels
Post by: Smirra on 2008-03-29 11:46:09
@Smirra
also using XP SP2 and it works fine here.
sometimes i get hotkey problems, but not reproducable and that was already before i used powerpanels. and clicking in the scpl makes the hotkeys work again.

Something tells me that it's other plugins that are "fighting back" and making them usable again... I might be wrong. Bcuz when i encountered the problem i had pretty much just the progress bar. And when i tried to replicate it as clean codewise as possible i was only using just that plugin.
It can also be that u don't use the 0.9.5.1 version as u haven't given any detail about what version you use of foobar!
Title: foo_uie_powerpanels
Post by: antar3s on 2008-03-29 13:22:20
i am using foobar version 0.9.5.1
if at all it might depend on the panels ui version that you are using. i'm running 0.14.9, and i have been using 0.13.8 and 0.14.12 without noticing this problem.

maybe only certain shortcuts are affected? i only tested if opening the preference page works...
Title: foo_uie_powerpanels
Post by: Smirra on 2008-03-30 11:52:53
i am using foobar version 0.9.5.1
if at all it might depend on the panels ui version that you are using. i'm running 0.14.9, and i have been using 0.13.8 and 0.14.12 without noticing this problem.

maybe only certain shortcuts are affected? i only tested if opening the preference page works...

I think the key to this problem is the playlist u were talking about. If u have a playlist panel going i think it will reenable the shortcuts.
Title: foo_uie_powerpanels
Post by: Walterrrr on 2008-04-21 22:11:11
Does anyone use the seek panel vertically? It seems that it interprets the beginning at the top, which is awkward for the layout I'm designing.

Elsewise, I love this plugin!
Title: foo_uie_powerpanels
Post by: punkluck1 on 2008-04-23 17:50:52
New guy here.  I'm working on touching up my config and the last thing that I need is to make my progress bar clickable.  After that, I'll be set.

But, I'm having some trouble getting powerpanel set up to work right.  I'm really not sure where the code should go and how to match up the powerpanel seek panel's position with my progress bar.

Here is the code for my progess bar from my Track Display.

Code: [Select]
$if(%isplaying%,
$puts(progress,$muldiv(%playback_time_seconds%,$sub(%_width%,24),%length_seconds%))
$drawrect(10,85,$sub(%_width%,20),6,brushcolor-null pencolor-86-106-160),)
$ifgreater($get(progress),0,$padding(9,85)$drawrect(3,2,$get(progress),2,brushcolor-130-160-240 pencolor-nulll),)


I'm not sure what other info is needed, but if any of you guys could help out, it would be great!
Title: foo_uie_powerpanels
Post by: Walterrrr on 2008-04-23 22:28:53
Hello,

from http://borgusiek.neostrada.pl/foobar/: (http://borgusiek.neostrada.pl/foobar/:)
Quote
Usage is pretty straightforward, all you have to do is to put
Seek Panel at the same position as your progress bar.

$panel(SeekPanel,Seek Panel,xpos,ypos,width,height,)


If you are using it in a vertical orientation, the seek panel may be "Reversed" (top of the bar is beginning, bottom is end) when clicking to seek on it, unless I've missed some option.
Title: foo_uie_powerpanels
Post by: punkluck1 on 2008-04-24 00:21:50
Hello,

from http://borgusiek.neostrada.pl/foobar/: (http://borgusiek.neostrada.pl/foobar/:)
Quote
Usage is pretty straightforward, all you have to do is to put
Seek Panel at the same position as your progress bar.

$panel(SeekPanel,Seek Panel,xpos,ypos,width,height,)


If you are using it in a vertical orientation, the seek panel may be "Reversed" (top of the bar is beginning, bottom is end) when clicking to seek on it, unless I've missed some option.


I guess specifically my two questions are:

Do I put $panel(SeekPanel,Seek Panel,xpos,ypos,width,height,) in with my Track Display code?

and

How do I get the info for xpos, ypos, width, and height?

Thanks for any help!
Title: foo_uie_powerpanels
Post by: Walterrrr on 2008-04-24 06:34:34
according to your code
Code: [Select]
$if(%isplaying%,
    $puts(progress,$muldiv(%playback_time_seconds%,$sub(%_width%,24),%length_seconds%))
    $drawrect(10,85,$sub(%_width%,20),6,brushcolor-null pencolor-86-106-160),
)
$ifgreater($get(progress),
    0,
    $padding(9,85)$drawrect(3,2,$get(progress),2,brushcolor-130-160-240 pencolor-nulll),
)

which means
If foobar is playing
   store variable "progress" as (playback time in seconds*the width-24) / Length in seconds
   and draws a rectangle at (10,85) that is (width - 20) long by 6 tall outlined by the color 86-106-160

then it checks in the that variable "progress" is longer than 0 and adds padding (9,85) to a rectangle placed at (3,2) that is as wide as the "progress" variable updating each second (assuming this is in the // PerSecond section of the config) with a height of 2

You are missing the $panel() part of the config which draws a transparent box to your specs, and allows you to click on it to seek to different places. I recommend

Code: [Select]
$panel(SeekPanel,Seek Panel,10,85,$sub(%_width%,20),6)


That should be pasted under the // PerTrack portion of the config. probably near the end of it before the // PerSecond part. I took those coordinates from the first drawrect function
Title: foo_uie_powerpanels
Post by: punkluck1 on 2008-04-24 22:10:07
according to your code
Code: [Select]
$if(%isplaying%,
    $puts(progress,$muldiv(%playback_time_seconds%,$sub(%_width%,24),%length_seconds%))
    $drawrect(10,85,$sub(%_width%,20),6,brushcolor-null pencolor-86-106-160),
)
$ifgreater($get(progress),
    0,
    $padding(9,85)$drawrect(3,2,$get(progress),2,brushcolor-130-160-240 pencolor-nulll),
)
which means
If foobar is playing
   store variable "progress" as (playback time in seconds*the width-24) / Length in seconds
   and draws a rectangle at (10,85) that is (width - 20) long by 6 tall outlined by the color 86-106-160

then it checks in the that variable "progress" is longer than 0 and adds padding (9,85) to a rectangle placed at (3,2) that is as wide as the "progress" variable updating each second (assuming this is in the // PerSecond section of the config) with a height of 2

You are missing the $panel() part of the config which draws a transparent box to your specs, and allows you to click on it to seek to different places. I recommend

Code: [Select]
$panel(SeekPanel,Seek Panel,10,85,$sub(%_width%,20),6)

That should be pasted under the // PerTrack portion of the config. probably near the end of it before the // PerSecond part. I took those coordinates from the first drawrect function
Great!  That is exactly what I was looking for.  It's great learning stuff.

Unfortunately, it still does not seem to be working.  I can't tell that there is a transparent box anywhere.  Being that it's transparent does, in fact, make it hard to see. 

Here is my code in its entirety.  Any suggestions???
Code: [Select]
// PerTrack

$imageabs($sub($div(%_width%,2),512),0,vista1\back1.png,)
//$imageabs2(40,40,,,,,2,2,$replace(%path%,%filename_ext%,)folder.jpg,)

$panel(SeekPanel,Seek Panel,10,85,$sub(%_width%,20),6)

// PerSecond

$drawrect(0,124,%_width%,10,brushcolor-244-244-244 pencolor-null)

$if(%isplaying%,
$puts(progress,$muldiv(%playback_time_seconds%,$sub(%_width%,24),%length_seconds%))
$drawrect(10,85,$sub(%_width%,20),6,brushcolor-null pencolor-86-106-160),)
$ifgreater($get(progress),0,$padding(9,85)$drawrect(3,2,$get(progress),2,brushcolor-130-160-240 pencolor-nulll),)

$if(%_isplaying%,

$font(calibri,13,bold glow-130-160-240 glowalpha-80,250-250-250)
$alignabs(0,6,%_width%,30,center,)%Title%

$alignabs(0,30,%_width%,20,center,)
$font(calibri,9,bold glow-130-160-240 glowalpha-80,250-250-250)%artist%

$alignabs(0,47,%_width%,20,center,)
$font(calibri,8,glow-180-180-180 glowalpha-50,220-220-220)from 
$font(calibri,8,glow-130-160-240 glowalpha-60,180-220-250)"%album%"

$alignabs(0,64,%_width%,20,center,)
$font(Calibri,8,glow-180-180-180 glowalpha-50,220-220-220)
$if($strcmp(%play_count%,0),
Playing song for first time,
$if($strcmp(%play_count%,1),
Song played %play_count% time','  ,
Song played %play_count% times. Last )
$if($strcmp($left($right(%last_played%,10),1),1),Tuesday', ',)
$if($strcmp($left($right(%last_played%,10),1),2),Wednesday', ',)
$if($strcmp($left($right(%last_played%,10),1),3),Thursday', ',)
$if($strcmp($left($right(%last_played%,10),1),4),Friday', ',)
$if($strcmp($left($right(%last_played%,10),1),5),Saturday', ',)
$if($strcmp($left($right(%last_played%,10),1),6),Sunday', ',)
$if($strcmp($left($right(%last_played%,10),1),7),Monday', ',)
at $right($left(%last_played%,16),5))


$button2($sub(%_width%,16),8,0,0,10,13,
'$font(Calibri,8,glow-75-80-120 glowalpha-70,250-250-250)',
'$font(Calibri,8,glow-75-80-120 glowalpha-170,250-250-250)?',1 - Track info Mod,)

,
$imageabs($sub($div(%_width%,2),38),10,neo2\wmp1.png,)
)

Thank you so much for your help.
Title: foo_uie_powerpanels
Post by: Walterrrr on 2008-04-24 22:15:45
full requoting isn't quite necessary when replying directly after

You should now be able to click on the boxes you drew earlier to seek!

The point of it being transparent is so you can see through the panel placement to the image or rectangles.

Hope this helps .
Title: foo_uie_powerpanels
Post by: punkluck1 on 2008-04-24 22:21:02
Ha, just trying to be thorough. 

When I click on my progress bar (supposedly where the transparent seek bar now is), nothing happens.

I'm not sure what I'm missing.

Any suggestions anybody?
Title: foo_uie_powerpanels
Post by: randmdood on 2008-05-04 13:25:01
can't see what your doing wrong^^^^

only thing i can't think of is make sure nothing is on top of it, so put it down the bottom of your code....
Title: foo_uie_powerpanels
Post by: punkluck1 on 2008-05-04 18:44:33
Man, I've moved everything around and nothing seems to change.  I just don't know what it could be.

I definitely welcome any other suggestions though, so if anybody has any ideas, let me know.

Thanks for your help Walterrrr and randmdood.
Title: foo_uie_powerpanels
Post by: randmdood on 2008-05-07 12:16:44
sorry it didn't help.. if i think of something I'll let you know
maybe try setting the height to somehting insanely big click around and see if it works, maybe somethings positioned incorrectly (even though it looks right). try getting the newest version and using that if your not already.
Title: foo_uie_powerpanels
Post by: callisto on 2008-05-07 14:37:27
Man, I've moved everything around and nothing seems to change.  I just don't know what it could be.

I definitely welcome any other suggestions though, so if anybody has any ideas, let me know.

Thanks for your help Walterrrr and randmdood.


Try to put the powerpanels panel in the 'root' panels ui panel and the trackinfo in a seperate panel (before the powerpanels panel)... It's worth a try I think
Title: foo_uie_powerpanels
Post by: Lucky Luciano on 2008-05-07 16:55:15
Here's simple example of a progress bar. Maybe it helps.

Main PanelsUI window code

Code: [Select]
$panel(CustomizableSeekbar,Track Display,20,70,200,20,)
$panel(SeekPanel,Seek Panel,20,70,200,20,)


Then pick the CustomizableSeekbar panel in the list, click settings and enter this code in that Configuration window

Code: [Select]
$puts(progress,$muldiv(%playback_time_seconds%,$sub(%_width%,0),%length_seconds%))
$drawrect(0,0,%_width%,%_height%,brushcolor-50-50-50)
$ifgreater($get(progress),0,$drawrect(0,0,$get(progress),%_height%,brushcolor-50-50-200),)
Title: foo_uie_powerpanels
Post by: punkluck1 on 2008-05-07 19:24:39
Hmmm, after reading these last few replies, I think I might know what the problem is.

Although, I do have the PanelsUI component, I am using ColumnsUI.  So, while I am able to alter settings of PanelsUI and such, only what is changing is the settings I alter in ColumnsUI. 

I'm not quite sure how different UIs work together, but I feel that this might be the problem.

Am I on track with this?  If so, dang, I'm sorry for wasting everyone's time.  Additionally, if this is the case, is there anything I can use with ColumnsUI that will function in the same manner?
Title: foo_uie_powerpanels
Post by: callisto on 2008-05-07 20:22:47
Um, thats the problem! Powerpanels do not work with Columns UI.

You could base your UI on Panels and use most of the functions of Columns UI as panels f.e. columns playlist / NG playlist / playlist switcher... then you could have the powerpanels functionality.
Title: foo_uie_powerpanels
Post by: punkluck1 on 2008-05-07 20:34:14
Man, what a doof!  I apologize to all.

Unfortunately, I finally have my ColumnsUI set up just like I want it and I'm just not sure that being able to use powerpanels would be worth moving over to PanelsUI. 

Thanks to all for your help.

It would be great if there were something similar to powerpanels' functionality for ColumnsUI.  But, I am content to settle for now.  Maybe when I get some time, I'll look into moving over to PanelUI.
Title: foo_uie_powerpanels
Post by: Walterrrr on 2008-05-19 10:41:33
If you are using it in a vertical orientation, the seek panel may be "Reversed" (top of the bar is beginning, bottom is end) when clicking to seek on it, unless I've missed some option.

Any news on this?
Title: foo_uie_powerpanels
Post by: Kirya on 2008-07-14 19:23:33
any chance for update with the "metadb_display_hook" issue?
Title: foo_uie_powerpanels
Post by: IcyStorm on 2008-09-06 18:00:56
Does anyone have a mirror or alternate download link? The site's down...
Title: foo_uie_powerpanels
Post by: v.1 on 2008-09-10 20:03:01
Does anyone have a mirror or alternate download link? The site's down...


could somebody please share the .dll? use a free hosting site
Title: foo_uie_powerpanels
Post by: KnightMare on 2008-09-11 02:25:38
http://drop.io/download/48c87372/14f66d1c6...powerpanels.dll (http://drop.io/download/48c87372/14f66d1c6864b49d06e312f5d58250f42d478a4f/4696c220-546a-012b-b309-00127994f632/62f4cc80-61ce-012b-318f-fc27a0369f2b/foo_uie_powerpanels.dll/foo_uie_powerpanels.dll)
Title: foo_uie_powerpanels
Post by: Fuzzehskittlez on 2008-09-13 19:36:01
http://drop.io/download/48c87372/14f66d1c6...powerpanels.dll (http://drop.io/download/48c87372/14f66d1c6864b49d06e312f5d58250f42d478a4f/4696c220-546a-012b-b309-00127994f632/62f4cc80-61ce-012b-318f-fc27a0369f2b/foo_uie_powerpanels.dll/foo_uie_powerpanels.dll)



a WORKING site please, not this garbage fake link
Title: foo_uie_powerpanels
Post by: Wheel of Fortune on 2008-09-14 09:24:42
a WORKING site please, not this garbage fake link


Maybe someone would be nice enough to help us if you wouldn't be so rude.

So yes, asking for another mirror temporarily until his website is up and running once again.
Title: foo_uie_powerpanels
Post by: bulhakov on 2008-09-14 10:20:58
foo_uie_powerpanels_v0.1.zip (http://www.sendspace.pl/file/0A4o2VhM/)
Title: foo_uie_powerpanels
Post by: Wheel of Fortune on 2008-09-14 10:24:24
foo_uie_powerpanels_v0.1.zip (http://www.sendspace.pl/file/0A4o2VhM/)


Thanks, appreciated.
Title: foo_uie_powerpanels
Post by: KnightMare on 2008-09-21 12:00:08

http://drop.io/download/48c87372/14f66d1c6...powerpanels.dll (http://drop.io/download/48c87372/14f66d1c6864b49d06e312f5d58250f42d478a4f/4696c220-546a-012b-b309-00127994f632/62f4cc80-61ce-012b-318f-fc27a0369f2b/foo_uie_powerpanels.dll/foo_uie_powerpanels.dll)



a WORKING site please, not this garbage fake link


it was working when I posted it. looks like drop.io doesnt like those kind of links apparently.

http://drop.io/knightmare (http://drop.io/knightmare) has it too btw
Title: foo_uie_powerpanels
Post by: Jan B on 2008-11-26 15:19:25
foo_uie_powerpanels_v0.1.zip (http://www.sendspace.pl/file/0A4o2VhM/)


would be super handy if one of the mods could link to this in the initial post. 

Thanks for posting it btw.
Title: foo_uie_powerpanels
Post by: aland on 2014-11-23 20:27:37
I found this page from an article (http://www.maximumpc.com/article/howtos/howto_manage_your_music_power_user_way_foobar?page=0,1) which mentions that foo_uie_powerpanels enables custom placement of the volume slider. The download link for this plugin no longer works and I suspect that, being so old, it may not even work with latest foobar even if the download worked.


Does anyone have a working download of this file?
Does another plugin provide the functionality I'm after? Specifically I want to place the volume slider on the right side of screen. So far I see only a checkbox to enable the status pane and no options for customisation.