Help - Search - Members - Calendar
Full Version: Track Info Panel with ability to change font
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24
sune
hi. I wanted to ask if there is a way to lock the panel mode.. I mean, keep it always in "now playing mode", not allowing it to change when you double click on it

I ask this cause I have made some playback buttons. The pause button switches to play when it is paused, and viceversa. So I've had to use something like: $if(%isplaying%, , ) but when I double click to turn volume up with another button I have on the panel, the mode switches, and the play/pause button does not display as it should. I hope I made myself clear.

If it's not possible consider it as a feature request smile.gif
thanks in advance

sune
wolfsong
QUOTE(metal_termite @ Oct 28 2006, 15:01) *

Weird, I'm still not getting that error. Make sure you're using the latest version of the component -- 0.7 beta [Oct 24 2006 - 18:45:32]

I did have an older version. After updating, I no longer get the error message but I dont' get a properties button either. All the code prior to the button works and if I create a new panel and just add

CODE
$button2(0,0,0,0,$calcwidth(Properties),13,'$font(tahoma,8,,0-0-0)Properties','$font(tahoma,8,underline,0-0-0)Properties', properties,))

I still get nothing. crying.gif

Also, adding $padding(4,0) still blanks the entire panel.
metal_termite
I don't know what to say because I copied and pasted that exact piece of code into a fresh panel and it works for me. All I can think of is you possibly made your background colour black so you cannot see the buttons black font?
wolver1ne
Is it possible to implement base64 decoding in some way? That way there's no need to meddle around with image files. Instead you just use base64 hash. That way it would be easier for people to post scripts without the need to provide the image files.
wolfsong
QUOTE(metal_termite @ Oct 29 2006, 04:50) *

I don't know what to say because I copied and pasted that exact piece of code into a fresh panel and it works for me. All I can think of is you possibly made your background colour black so you cannot see the buttons black font?

Well I thought that too since I am using a black background for the full code but I don't see anything with just the button code on a white background either. This is quite frustrating. Do you have a simple config you can post that I could test? It seems pointless sense this one line of could works for you but...
wolfsong
As a test, I uninstalled F2K.8 from the only machine I had not upgraded and did a clean F2K.9 install, only adding Columns UI 0.1.3 beta 1v6 and Track Info Panel Mod 0.7.1 beta. I still don't have a button with

CODE
$button2(0,0,0,0,$calcwidth(Properties),13,'$font(tahoma,8,,255-0-0)Properties','$font(tahoma,8,underline,255-0-0)Properties', properties,))

and with

CODE
$padding(4,0)
$button2(0,0,0,0,$calcwidth(Properties),13,'$font(tahoma,8,,255-0-0)Properties','$font(tahoma,8,underline,255-0-0)Properties', properties,))

I get an [UNKNOWN FUNCTION] message again.
vonmeth
QUOTE(wolfsong @ Oct 29 2006, 16:53) *

As a test, I uninstalled F2K.8 from the only machine I had not upgraded and did a clean F2K.9 install, only adding Columns UI 0.1.3 beta 1v6 and Track Info Panel Mod 0.7.1 beta. I still don't have a button with

CODE
$button2(0,0,0,0,$calcwidth(Properties),13,'$font(tahoma,8,,255-0-0)Properties','$font(tahoma,8,underline,255-0-0)Properties', properties,))

and with

CODE
$padding(4,0)
$button2(0,0,0,0,$calcwidth(Properties),13,'$font(tahoma,8,,255-0-0)Properties','$font(tahoma,8,underline,255-0-0)Properties', properties,))

I get an [UNKNOWN FUNCTION] message again.


Do you have

Requires:

MS Visual C++ 2005 Runtime Library
GDI+ - only needed for Windows 2000

Links to above in the first post.
Yotsuya
Would it be possible to add a boolean value to $imageabs2() to reflect if an image exists? The current function appears to return a boolean of TRUE no matter what I throw at it. This would be useful so that we could do things like:

$if2($imageabs2(code for cover image),$imageabs2(code for no-cover image))

instead of the current layering approach which has some limitations and wastes resources.
4nt1
yes I second that, I also want wild card value possible ie so I could do Folder.* and have it display any gfx type..
kockroach
QUOTE(wolfsong @ Oct 29 2006, 16:53) *

CODE
$padding(4,0)
$button2(0,0,0,0,$calcwidth(Properties),13,'$font(tahoma,8,,255-0-0)Properties','$font(tahoma,8,underline,255-0-0)Properties', properties,))

I get an [UNKNOWN FUNCTION] message again.

You have one too many ")" at the end.
wolfsong
QUOTE(vonmeth @ Oct 29 2006, 16:58) *

Do you have

Requires:

MS Visual C++ 2005 Runtime Library
GDI+ - only needed for Windows 2000

Links to above in the first post.

Yes. Otherwise it wouldn't work at all.
wolfsong
QUOTE(kockroach @ Oct 29 2006, 19:57) *

QUOTE(wolfsong @ Oct 29 2006, 16:53) *

CODE
$padding(4,0)
$button2(0,0,0,0,$calcwidth(Properties),13,'$font(tahoma,8,,255-0-0)Properties','$font(tahoma,8,underline,255-0-0)Properties', properties,))

I get an [UNKNOWN FUNCTION] message again.

You have one too many ")" at the end.

Good catch but still doesn't work. headbang.gif

I just tried the pause button example in the wiki and it displays but nothing happens when I click it. Just substituting properties for pause seems to break something.

Also, still can't get padding to work at all. After removing the extra closing parens, I at least don't get an error and the screen doesnt' go blank but nothing happens either. Could someone document this command in the wiki please? The only reference to it is under drawing a rectangle.
wolfsong
So I played a bit more and noticed a few oddities.

CODE
$button2(0,0,0,0,$calcwidth("Properties"),$calcheight("Properties"),'$font(tahoma,8,,0-0-0)Properties','$font(tahoma,8,underline,0-0-0)Properties', properties,)

&

CODE
$button2(0,0,0,0,$calcwidth("Properties"),$calcheight(Properties),'$font(tahoma,8,,0-0-0)Properties','$font(tahoma,8,underline,0-0-0)Properties', properties,)

Will display correctly but the button doesn't work.

While

CODE
$button2(0,0,0,0,$calcwidth(Properties),$calcheight(Properties),'$font(tahoma,8,,0-0-0)Properties','$font(tahoma,8,underline,0-0-0)Properties', properties,)

&

CODE
$button2(0,0,0,0,$calcwidth("Properties"),$calcheight("Properties"),'$font(tahoma,10,,0-0-0)Properties','$font(tahoma,10,underline,0-0-0)Properties', properties,)

Will not display at all.

The slightest change in values seems to break buttons.
terrestrial
QUOTE(sune @ Oct 28 2006, 18:59) *

hi. I wanted to ask if there is a way to lock the panel mode.. I mean, keep it always in "now playing mode", not allowing it to change when you double click on it

I ask this cause I have made some playback buttons. The pause button switches to play when it is paused, and viceversa. So I've had to use something like: $if(%isplaying%, , ) but when I double click to turn volume up with another button I have on the panel, the mode switches, and the play/pause button does not display as it should. I hope I made myself clear.

If it's not possible consider it as a feature request smile.gif
thanks in advance

sune


yeah, I don't like the double-click to change mode either... I will change it to a context menu option in the next version.


QUOTE(Yotsuya @ Oct 29 2006, 17:04) *

Would it be possible to add a boolean value to $imageabs2() to reflect if an image exists? The current function appears to return a boolean of TRUE no matter what I throw at it. This would be useful so that we could do things like:

$if2($imageabs2(code for cover image),$imageabs2(code for no-cover image))

instead of the current layering approach which has some limitations and wastes resources.


I'll add a $fileexists or something similar (as well as wildcard support).

QUOTE(wolfsong @ Oct 29 2006, 20:57) *

So I played a bit more and noticed a few oddities.


I'm guessing the font you have chosen in the "Font" section isn't tahoma 8.

Try this:

CODE

$calcwidth(Properties)|
$font(tahoma,8,,0-0-0)$calcwidth(Properties)


which should illustrate the problem.

also the command should match exactly with the menu item, so remove the space before properties.

this should work

CODE

$button2(0,0,0,0,$calcwidth($font(tahoma,10,,0-0-0)Properties),$calcheight($font(tahoma,10,,0-0-0)Properties),'$font(tahoma,10,,0-0-0)Properties','$font(tahoma,10,underline,0-0-0)Properties',Properties,)

or
CODE

$font(tahoma,10,,0-0-0)
$button2(0,0,0,0,$calcwidth(Properties),$calcheight(Properties),'$font(tahoma,10,,0-0-0)Properties','$font(tahoma,10,underline,0-0-0)Properties',Properties,)
wolfsong
QUOTE(terrestrial @ Oct 29 2006, 20:38) *

I'm guessing the font you have chosen in the "Font" section isn't tahoma 8.

Yes. I see the problem.

QUOTE(terrestrial @ Oct 29 2006, 20:38) *

also the command should match exactly with the menu item, so remove the space before properties.

Looks like the problem was in the example on the wiki but Metal termite has corrected it already (Thanks!).

I'm still not sure how to use $padding(x,x) though. I tried adding it to the first example you gave and it works fine but it still doesn't work with the properties example.
Nickoladze
Is a clickable progress bar possible? I'd love this
Yotsuya
a clickable progress bar wouldnt be too hard using buttons but the actual event of skipping to position x is the hangup. do you know of any way to tell foobar to jump to a given time index?
mazy
no. this would be nice special feature of track info panel mod to have.
Gord
A nice feature would be the ability to use Ctrl - A to select all the code in the formatting strong part of the config window tongue.gif


I am also having some problems with the WMP11 layout. Buttons just don't work at all. I cleared the very bottom trackinfo_mod panel and just used some basic button code and it still not liking me.

CODE
$button2(489,11,0,0,48,48,$imageabs(489,11,images\play.png,),$imageabs(489,11,images\play_h.png,),Playpause,)


The image appears but it is the hover image not the normal one and the button is unclickable.

foo_run is setup correctly to work with Playpause. I also tried it with Play or Pause. No luck though.


WMP11 thread is here for details on the code and layouts
Hamallainen
QUOTE(terrestrial @ Oct 30 2006, 03:38) *

QUOTE(sune @ Oct 28 2006, 18:59) *

hi. I wanted to ask if there is a way to lock the panel mode.. I mean, keep it always in "now playing mode", not allowing it to change when you double click on it
"........"
sune

yeah, I don't like the double-click to change mode either... I will change it to a context menu option in the next version.

Hi
I agree that the double-click system is annoying now that we have the possibility to insert buttons and an option to choose the mode we want would be better.
But also i find it a bit frustrating to have to choose between a panel that will only display 'now playing' infos or only 'follow cursor' infos. Of course we can set up 1 panel for each mode. But wouldn't it be better if we could display both at the same time in just one panel ? With 2 functions maybe ?
An exemple would maybe explain better what i would like:
CODE

$nowplaying(...Some code that would take its infos from the now playing file...)

$followcursor(...Some code that would take its infos from the file selected by the cursor...)

Thanks
sunstone
hello
i love the plugin!!!! biggrin.gif
in fact i have two panels displayed as described by the above poster.
my question though is this:
on my "follow cursor" panel i can't seem to make it completely blank out.
even when i clear the playlist the panel will not empty.
the info for the last track i had selected is still displayed in the panel.
am i doing something wrong or is this normal ?
and is there a way to make it be blank when there is nothing in my playlist ?
i hope i am making sense smile.gif

-pete
2Pacalypse
Is there a way to have buttons set up to open up say the lyrics panel. Either as a new panel say using the floating panel plug in (dockable or whatever it is) or better yet as a new splitter.

I already have a splitter on auto hide containing the lyrics panel, but would prefer it if i could have a button for the playlist and one for the lyrics and click to alternate between.

What im trying to say is replace foo_uie_tabs with buttons is it possible?
Russell777
QUOTE(2Pacalypse @ Oct 30 2006, 17:44) *

Is there a way to have buttons set up to open up say the lyrics panel. Either as a new panel say using the floating panel plug in (dockable or whatever it is) or better yet as a new splitter.

I already have a splitter on auto hide containing the lyrics panel, but would prefer it if i could have a button for the playlist and one for the lyrics and click to alternate between.

What im trying to say is replace foo_uie_tabs with buttons is it possible?

There is a modification of foo_uie_tabs in which you can access it's commands via context menu=via buttons too.
2Pacalypse
QUOTE(Russell777 @ Oct 30 2006, 09:54) *

QUOTE(2Pacalypse @ Oct 30 2006, 17:44) *

Is there a way to have buttons set up to open up say the lyrics panel. Either as a new panel say using the floating panel plug in (dockable or whatever it is) or better yet as a new splitter.

I already have a splitter on auto hide containing the lyrics panel, but would prefer it if i could have a button for the playlist and one for the lyrics and click to alternate between.

What im trying to say is replace foo_uie_tabs with buttons is it possible?

There is a modification of foo_uie_tabs in which you can access it's commands via context menu=via buttons too.



Do you have any links on how to do it or where i can download the mod? would i need to use foo_run?
Russell777
Download
It acts exactly like the the usual foo_uie_tabs,but adds a few commands that you can assign to buttons.
2Pacalypse
QUOTE(Russell777 @ Oct 30 2006, 11:19) *

Download
It acts exactly like the the usual foo_uie_tabs,but adds a few commands that you can assign to buttons.


thanks i found it but this is a newer version so cheers
kockroach
QUOTE(2Pacalypse @ Oct 30 2006, 13:42) *

thanks i found it but this is a newer version so cheers

The one that russell777 mentioned actually is the newest version. Version 0.2.5 is a modified version, which was spawned from version 2.07
wolfsong
Is there a way to have buttons align with the preceeding text? I need something like:

Line 1
Line 2
Line 3

Button

But I can't specify a height because in some cases Line 2 may not be displayed. I've tried using $button2(,,,,,,x,x,x,x) but the button is still positioned as if the values were 0.

Also, if I change underline in the following to bold, the screen is blank. Any ideas?

CODE
$button2(0,0,0,0,30,13,'$font(tahoma,8,,0-0-0)pause','$font(tahoma,8,underline,0-0-0)pause',pause,)
2Pacalypse
i want to display my album art to a max of 300by300 centrally is there a code i can use? so it remains centered even if the window resizes?

also is there a way so the images resizes due to the visible space (again if the window resizes?)

dtsneak
I'm having trouble with playback commands within $button. None of them seem to work including: play, pause, playpause, previous, prev, next, stop, playback/play, playback/prev, playback/previous, etc, etc, etc.

I've tried the wiki that includes all foobar commands, but they just aren't working.
wolfsong
QUOTE(dtsneak @ Oct 31 2006, 10:23) *

I'm having trouble with playback commands within $button. None of them seem to work including: play, pause, playpause, previous, prev, next, stop, playback/play, playback/prev, playback/previous, etc, etc, etc.

I've tried the wiki that includes all foobar commands, but they just aren't working.

Make sure there is no space between the previous comma and the command and the command is exactly as it appears in the wiki. There was a space in the example on the wiki that was causing it not to work for me.
shakey_snake
Hi, terrestrial and gang.
I've been using foobar for about a week and this plug-in for about as long. (version: 0.7.1 beta [Oct 24 2006 - 22:48:54])

I'm using the following code to display album art:
CODE
$imageabs2(125,125,,,,,2,2,$replace(%path%,%filename_ext%,)folder.jpg,)

and this works great for everything except whenever I'm playing/viewing a song from the directory ...My Music\Albums\Big Star\#1 Record

Since the image file is viewable with the same code if I move it to another directory, and the $replace(%path%,%filename_ext%,) prints in trackinfo_mod by itself as one would expect, I'm guessing the bug is with your plug-in, and has something to do with the path to the file containing a #.
Thank you.
sune
I'm trying to make a button for playing an audio cd, like this:

$button(21,0,0,0,18,17,images\icons\opencd.png,,play audio cd...,) and it does not work

I've also tried: $button(21,0,0,0,18,17,images\icons\opencd.png,,play audio cd,) but still, nothing

The "play audio cd..." command belongs to the Main Menu Items.
Anybody else has made that button? is it not possible?

EDIT: nvm, the right command is "Open Audio CD". It's wrong in the commandline guide in the wiki
carmenm
Does anyone know if there would be a way to know the state of a tabbed panel, i mean which view it is on, inside the code of a track info mod panel?

Edit: It appears that images loaded in track info mod are locked so we cant modify album arts for example. Would there be a way for those images not to be locked?

Also i really hope fileexists will be implemented in track info mod too wink.gif
Cant wait for that and the full path commands

Thanks a lot for your work terrestrial!
metal_termite
If you guys find a mistake in the Wiki, don't be shy, fix it! tongue.gif

QUOTE(carmenm @ Nov 1 2006, 09:02) *

Does anyone know if there would be a way to know the state of a tabbed panel, i mean which view it is on, inside the code of a track info mod panel?

It's not possible to my knowledge. There's no way to detect what state a tabbed panel is in.
carmenm
QUOTE(metal_termite @ Nov 1 2006, 11:55) *

If you guys find a mistake in the Wiki, don't be shy, fix it! tongue.gif

QUOTE(carmenm @ Nov 1 2006, 09:02) *

Does anyone know if there would be a way to know the state of a tabbed panel, i mean which view it is on, inside the code of a track info mod panel?

It's not possible to my knowledge. There's no way to detect what state a tabbed panel is in.

That s what i thought
dtsneak
Could I make a button to load a specific playlist?

Closest command I can find is: Playlist/Load playlist...

Is there a way to specify one? I'm kind of assuming thats why it's ...
carmenm
Currently when you resize the panel, images are not updated. Consequently if the size of an imageabs2 depends on the width or height, the image does not resize itself when you resize the panel.

Could it be possible terrestrial to add that feature?
alphaex32
QUOTE(carmenm @ Nov 1 2006, 16:33) *

Currently when you resize the panel, images are not updated. Consequently if the size of an imageabs2 depends on the width or height, the image does not resize itself when you resize the panel.

Could it be possible terrestrial to add that feature?
I was going to ask the same thing. Also, are you planning to implement the new features in single_column into this (NOKEEPASPECT,filecheck,image wildcards)?
Yotsuya
When I upgraded to the Oct. 24 version of trackinfomod my buttons linked to foo_run services and tabs stopped working. I downgraded to my previous version and they started working again. I re-upgraded to Oct.24 and they stopped. However, my buttons linked to main menu playback commands such as previous, next, play/pause, and volume functions all function properly in both versions. Is anyone experiencing this problem? I'll have to wait until this weekend to give it a proper debugging.
2Pacalypse
my tabs are still working in the current version
Yotsuya
Well I solved my problem, there appears to have been a change in the button command:

$button(x,y,a,b,w,h,image,hover,option)

Before I had left a and b blank, this used to work fine but the newer version appears to be a bit more sensitive. I replaced the empty parameters with 0's and now all is well.
sunstone
is there a way to display the total number of tracks selected in this panel somehow ?
i see a way to display selected time...and a way to show the number of tracks in a playlist.
but is there a way to display how many tracks i have selected ?
thanks!
Snowsfall
quick requests, could you make it so setting tags/running scripts targets all of the tracks selected, right now it is only doing one. Also the same imageabs2 options you added to single columns playlists would be awesome(nokeepaspect/image aligning)

thanks for the great work on these components smile.gif
Nickoladze
i hope $fileexists is being added to this plugin too
wolfsong
Feature Request

Allow buttons, rectangles and images to flow with text instead of specifying a position. Thanks!
Nickoladze
QUOTE(wolfsong @ Nov 4 2006, 12:39) *

Feature Request

Allow buttons, rectangles and images to flow with text instead of specifying a position. Thanks!

use $calcwidth to find the length of text and size them that way
2Pacalypse
is it possible for a button to switch to a different foobar layout?

and going even further specifying which tabbed panel?
san84
Using last build of TrackInfo.. I don't have ability to bring my foobar window on top when clicking on trackinfo area.. Could it be fixed? Older builds don't have such problem..
spex04
QUOTE(2Pacalypse @ Nov 5 2006, 12:30) *

is it possible for a button to switch to a different foobar layout?

and going even further specifying which tabbed panel?


You should be able to just use the panel/layout name as the button command.. I think
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.