Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Track Info Panel with ability to change font (Read 728036 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Track Info Panel with ability to change font

Reply #975
I'll get back to you on everything later today, but for now, thank you kindly

Track Info Panel with ability to change font

Reply #976
I'm using %cwb_systemdatetime% in one of my trackinfo panels. Unfortunately it doesnt update the time if playback is paused. Is that problem related to Trackinfo_mod or cwb_hooks?

Track Info Panel with ability to change font

Reply #977
Hi.
two pages ago
Please search the topic before asking questions. It makes life easier for everyone.
elevatorladylevitateme

Track Info Panel with ability to change font

Reply #978
apologies if this has been answered here before, but is it possible to have trackinfo mode (Follow cursor vs. Now Playing) controlled by a button as opposed to the right-click menu? I had gotten used to doing that by doubleclicking the panel, and now that I've updated my dll that behavior is gone

-Nate

Track Info Panel with ability to change font

Reply #979
A serious suggestion to improve the Trakinfo configuration window: The inclusion of a simple drop down list that contains ALL Trackinfo_mod functions
  • It would be a simple and efficient way to help users keep up with added features and to familiarize themselves with all the functions and syntax. I know someone will say "thats what the Wiki is for," "just read the changelog." Both of which are quite tedious in comparison when all you need is a reference to a list of functions.
  • How would this drop down list work? Well, the list of functions could be sorted in alphabetical order. On selection and click of an 'Insert' button, the function is added by the cursor position in the formatting string window. The selected function would be added with its parameters defined.  For example, if a user selected $font from the drop-down list, the following would be added to the formatting strong window: $font(NAME,SIZE,OPTIONS,COLOR)
  • Pictures are worth a thousand words so here is what the proposed config would look like...

That's it. Hope it is taken into consideration.

Track Info Panel with ability to change font

Reply #980
^I think that configuration window looks great. There is still room for more improvement though. The color code stuff and the Edit button could be removed imo.


Track Info Panel with ability to change font

Reply #982
hey,firstoff...myspacebar'sbroken.sorryaboutthat.


anyway,.how.would.i.be.able.to.make.backgroundimages.in.
trackinfo.mod.change.when.the.song.changes?
how.do.i.make.it.take.random.images.from.a.specified.folder.without.
specifying.the.name.of.each.image?

Track Info Panel with ability to change font

Reply #983
My idea is to have blank space at the bottom of the panel which when hovered over shows selected info - here's my code:
Quote
$if(%rating%,
$button2(120,20,0,0,110,50,'$font(tahoma,18,,235-235-235) ','$font(tahoma star,18,,235-235-235)%rating%',,))


what I'd like to do replace the number that appears on mouse over with a star from the tahoma star font i'm using - here is that code:

Code: [Select]
$if(%rating%,
$rgb(235,235,235))
$select(%rating%,
★,
★★,
★★★,
★★★★,
★★★★★)
)
)


But can't figure how to get the two pieces of code to talk to each other- so that it works...

Thanks in advance

Track Info Panel with ability to change font

Reply #984
A serious suggestion to improve the Trakinfo configuration window: The inclusion of a simple drop down list that contains ALL Trackinfo_mod functions
  • It would be a simple and efficient way to help users keep up with added features and to familiarize themselves with all the functions and syntax. I know someone will say "thats what the Wiki is for," "just read the changelog." Both of which are quite tedious in comparison when all you need is a reference to a list of functions.
  • How would this drop down list work? Well, the list of functions could be sorted in alphabetical order. On selection and click of an 'Insert' button, the function is added by the cursor position in the formatting string window. The selected function would be added with its parameters defined.  For example, if a user selected $font from the drop-down list, the following would be added to the formatting strong window: $font(NAME,SIZE,OPTIONS,COLOR)
  • Pictures are worth a thousand words so here is what the proposed config would look like...
That's it. Hope it is taken into consideration.

Hmm, good idea. I think, like mil3s said, the Edit button and Colour code stuff can be scrapped. I think another nice addition would be separate tabs for each redraw type.

</signature>

Track Info Panel with ability to change font

Reply #985
Hmm, good idea. I think, like mil3s said, the Edit button and Colour code stuff can be scrapped. I think another nice addition would be separate tabs for each redraw type.

http://img254.imageshack.us/img254/9708/tr...ockupcf4ab0.png


No love for the edit button?    I've been using it to launch textpad so I can use the syntax higlighting to make sure I closed all my functions and what not.  Oh well, I can always just cut and paste, but that's an extra step.

Track Info Panel with ability to change font

Reply #986
anyway,.how.would.i.be.able.to.make.backgroundimages.in.
trackinfo.mod.change.when.the.song.changes?
how.do.i.make.it.take.random.images.from.a.specified.folder.without.
specifying.the.name.of.each.image?


First you would need to move the code for your background images under a // PerTrack header, but to continue to appear in the background they will need to be toward the top of your code. Now, to make the images "random" you will need to come up with a naming scheme for your images that can be referenced with a $rand() command. For example:

Code: [Select]
// PerTrack
$imageabs2(%_width%,%_height%,,,,,0,0,/images\background$rand(9).*,)

With images named background0.jpg, background1.gif, background9.png, etc. placed in your foobar images directory.

No love for the edit button?  :(  I've been using it to launch textpad so I can use the syntax higlighting to make sure I closed all my functions and what not.  Oh well, I can always just cut and paste, but that's an extra step.

I too find the color code box and edit button rather worthless. I tend to use the colors in $font() instead of $rgb(), and the edit button doesn't import the notepad document when you are done so you have to copy/paste anyway.

I do, however, very much like the idea of having separate tabs for // Background, // PerTrack, // PerSecond, etc. but how do you dictate which code is processed in what order? Sometimes I want // PerSecond code to be rendered before // PerTrack code and visa versa. However I think the separate tabs would make things much more intuitive and could easily adapt.  Since we are on the topic of redesigning the configuration window can we pretty please with sugar on top have a resizable window? The window is so tiny on my 2048x1536 display and the ability to stretch the window from the corner like most other windows to reveal more edit space would be lovely.

Track Info Panel with ability to change font

Reply #987
Actually, saving it in notepad updates it in the edit box when you press apply.  But yeah, I'll second the resizeable window... and the colour button is basically useless for me.

Track Info Panel with ability to change font

Reply #988
Hey guys!

I have a context menu item Edit Other > Insert into Playlist > Playlist_Name
where Playlist_Name is the name of any existing playlist. When i'm trying to create a button to move currently playing track into a playlist the following code doesn't work at all:

$button($sub(%_width%,35),70,0,0,32,32,c:\Program Files\foobar2000\images\move2pl.png,c:\Program Files\foobar2000\images\move2pl_.png,'Edit Other/Insert into Playlist/Playlist_Name',)

... however I have some other buttons which run the commands from context menu with no problem i.e. some commands form it work OK.


Thanks in advance!


UPDATE: Just found a post regarding it two pages back... so it is not really possible to do

Track Info Panel with ability to change font

Reply #989
why do none of these awesome trackinfo-mod codes work for me?

is 0.8.0 beta the latest version or not?

Track Info Panel with ability to change font

Reply #990
Hi,
I'm new to Foobar, so I have to ask.
I have several panels in Tabbed panel stack mod.
I'd like to create "switching tab button".
I expect something like this, but I'm not sure with syntax and so on.

Code: [Select]
$if (Single viev,
$button(150,1,0,0,22,21,image,hover, Album View,),
$button(150,1,0,0,22,21,image,hover, Single View,)
)


I've tried to serch solution, or some good reference manual but without succes.
Thanks for help....

Track Info Panel with ability to change font

Reply #991
why do none of these awesome trackinfo-mod codes work for me?

is 0.8.0 beta the latest version or not?


Yes it is the latest version - do you have MS Visual C++ 2005 Runtime Library installed? ( link on 1st post)

Perhaps post the code your working with & we can help you from there...

Track Info Panel with ability to change font

Reply #992
i figured it out

Track Info Panel with ability to change font

Reply #993
Hi, i'm new, in these days i'm still configuring my foobar and do some test on trackinfomod panel.

I want emulate the "playback order bar" in trackinfo panel, but i have some problems:

If i use the $button2() function i can't write any name containing parenthesis, for example 'shuffle (tracks)' or

use $get() for some variables on the contrary if i write the code without the button function i not have problems.

Not know how explain exactly my problem (not speak english very well), perhaps i not write the correct syntax

i need help.

I put the two examples:

1) working but i not can use parenthesis
2) Working (not complete, only for test) without $button use

Code: [Select]
///////////1

$button2(5,150,0,0,200,40,
'$font(lcd2 bold,10,,255-167-47)$upper(%cwb_playback_order%)',
$if($strcmp(%cwb_playback_order%,'Default'),
    '$font(lcd2 bold,10,,128-0-255)REPEAT PLAYLIST',
    $if($strcmp(%cwb_playback_order%,'Repeat (playlist)'),
        '$font(lcd2 bold,10,,128-0-255)'REPEAT TRACK'',
        $if($strcmp(%cwb_playback_order%,'Repeat (track)'),
            '$font(lcd2 bold,10,,128-0-255)'SHUFFLE ALBUMS'',
            $if($strcmp(%cwb_playback_order%,'Shuffle (albums)'),
                '$font(lcd2 bold,10,,128-0-255)'SHUFFLE DIRECTORIES'',
                $if($strcmp(%cwb_playback_order%,'Shuffle (directories)'),
                    '$font(lcd2 bold,10,,128-0-255)'SHUFFLE TRACKS'',
                    $if($strcmp(%cwb_playback_order%,'Shuffle (tracks)'),
                        '$font(lcd2 bold,10,,128-0-255)'DEFAULT'',
                    )
                )
            )
        )
    )
),
$if($strcmp(%cwb_playback_order%,'Default'),
    'Repeat (playlist)',
    $if($strcmp(%cwb_playback_order%,'Repeat (playlist)'),
        'Repeat (track)',
            $if($strcmp(%cwb_playback_order%,'Repeat (track)'),
            'Shuffle (albums)',
                $if($strcmp(%cwb_playback_order%,'Shuffle (albums)'),
                'Shuffle (directories)',
                    $if($strcmp(%cwb_playback_order%,'Shuffle (directories)'),
                    'Shuffle (tracks)',
                        $if($strcmp(%cwb_playback_order%,'Shuffle (tracks)'),
                        'Default',
                        )
                    )
                )
            )
    )
)
,
)


///////////2
$puts(Evidenziato,$font(lcd2 bold,10,,128-0-255))

$alignabs(10,250,150,25,,)
$if($strcmp(%cwb_playback_order%,'Default'),
    $get(evidenziato)'REPEAT (PLAYLIST)',
        $if($strcmp(%cwb_playback_order%,'Repeat (playlist)'),
        $get(evidenziato)'REPEAT (TRACK)',
            $if($strcmp(%cwb_playback_order%,'repeat (track)'),
            $get(evidenziato)'SHUFFLE (ALBUMS)',
            )
        )
    )
)

Track Info Panel with ability to change font

Reply #994
It seems like these lines -
Code: [Select]
 '$font(lcd2 bold,10,,128-0-255)'REPEAT TRACK'',

have 2 extra ' .  It should be -
Code: [Select]
 '$font(lcd2 bold,10,,128-0-255)REPEAT TRACK',

Track Info Panel with ability to change font

Reply #995
Hi,
I'm new to Foobar, so I have to ask.
I have several panels in Tabbed panel stack mod.
I'd like to create "switching tab button".
I expect something like this, but I'm not sure with syntax and so on.

Code: [Select]
$if (Single viev,
$button(150,1,0,0,22,21,image,hover, Album View,),
$button(150,1,0,0,22,21,image,hover, Single View,)
)


I've tried to serch solution, or some good reference manual but without succes.
Thanks for help....


This is a tricky one. I know of no programmatic way to test if a given tab is active, or what the currently active tab is named. Theoretically you should be able to do something like this:
$button(150,1,0,0,22,21,image,hover,Panel #0 Cycle Forward,)
however the # is an invalid character and it wont work even if you surround it in single quotes or change it to $char(35). So unless things change I do not think your wish to have a toggle button will work. You can however create two separate buttons next to each other in your layout like this:
$button(150,1,0,0,22,21,image,hover,Album View,)
$button(172,1,0,0,22,21,image,hover,Single View,)

Track Info Panel with ability to change font

Reply #996

Hi,
I'm new to Foobar, so I have to ask.
I have several panels in Tabbed panel stack mod.
I'd like to create "switching tab button".
I expect something like this, but I'm not sure with syntax and so on.

Code: [Select]
$if (Single viev,
$button(150,1,0,0,22,21,image,hover, Album View,),
$button(150,1,0,0,22,21,image,hover, Single View,)
)


I've tried to serch solution, or some good reference manual but without succes.
Thanks for help....


This is a tricky one. I know of no programmatic way to test if a given tab is active, or what the currently active tab is named. Theoretically you should be able to do something like this:
$button(150,1,0,0,22,21,image,hover,Panel #0 Cycle Forward,)
however the # is an invalid character and it wont work even if you surround it in single quotes or change it to $char(35). So unless things change I do not think your wish to have a toggle button will work. You can however create two separate buttons next to each other in your layout like this:
$button(150,1,0,0,22,21,image,hover,Album View,)
$button(172,1,0,0,22,21,image,hover,Single View,)


Thank you for explanation. I think I will use two buttons.
Exist there some reference of possible button commands? I didn't find it anywhere.

 

Track Info Panel with ability to change font

Reply #997
$imageabs2(200,200,,,,,155,50,$get(cover1),nokeepaspect)
$imageabs2(200,200,,,,,155,50,$get(cover2),nokeepaspect)

$imageabs2(200,200,,,,,155,253,$get(cover1),nokeepaspectROTATEFLIP-6)
$imageabs2(200,200,,,,,155,253,$get(cover2),nokeepaspectROTATEFLIP-6)

My rotated covers don't resize if there smaller than 200 by 200. It's only the rotated ones...

What's wrong with my code or is this a bug? can please somebody help me
thanks in advance

Track Info Panel with ability to change font

Reply #998
$imageabs2(200,200,,,,,155,50,$get(cover1),nokeepaspect)
$imageabs2(200,200,,,,,155,50,$get(cover2),nokeepaspect)

$imageabs2(200,200,,,,,155,253,$get(cover1),nokeepaspectROTATEFLIP-6)
$imageabs2(200,200,,,,,155,253,$get(cover2),nokeepaspectROTATEFLIP-6)

My rotated covers don't resize if there smaller than 200 by 200. It's only the rotated ones...

What's wrong with my code or is this a bug? can please somebody help me
thanks in advance

You need a space between your options -
Code: [Select]
,nokeepaspect ROTATEFLIP-6)

Track Info Panel with ability to change font

Reply #999
Has anyone figured out how to make scrolling lyrics in the info panel yet?