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: foo_uie_trackinfo (Read 817181 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

foo_uie_trackinfo

Reply #650

Quick Question, Whats the code for if the file was submitted to last.fm?

afaik, there's no real code to see last.fm submissions. the plugin submits after playing for 3 minutes, or 50% so you'll have to create a string that works like that as well. Because i had nothing to do myself, and liked the idea for my own trackinfopanel, i created one:

Code: [Select]
$if(%_isplaying%,$ifgreater(%_time_elapsed_seconds%,240,Scrobbled,$ifgreater($muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%),50,
Scrobbled,Non-scrobbled)))


This approach does not detect when you skip tracks, so it isnt 100% accurate



thanks for the info and the code!

foo_uie_trackinfo

Reply #651
an idea/feature

would it be possible to have alternate line colours like in columns ui

ie each line of a song has a colour then colour2 for next line, then back to colour 1 for next line etc..

would also love to be able to use $tab() and $char(9) as well...
i just wish i could make my track info look like my track info like my columns ui... guess im a dreamer

foo_uie_trackinfo

Reply #652
Please make it possible to align both left and right on the same line.


I'd like to use different font sizes on texts. That would be a nice feature.


These are the two features I'd like most to see in this plugin. I'm really surprised more people aren't asking for it. It's really hard to make efficient use of space when you can't align text left and right on the same line. Sure you can use a fixed width font, but they're ugly in comparison

foo_uie_trackinfo

Reply #653
This is my current layout. I use 8 Track Info panels.  It would be cool if I could use only 1 panel on the first line though, having the Filename and track length in the same box, with the length aligned to the right.

foo_uie_trackinfo

Reply #654
edit: nevermind, I'm stupid

foo_uie_trackinfo

Reply #655
Could someone post the default trackinfo string?

Heh, I seem to have nuked it

foo_uie_trackinfo

Reply #656
Could someone post the default trackinfo string?

Heh, I seem to have nuked it


Code: [Select]
Mode: %_trackinfo_mode%$char(10)$char(10)$if(%_trackinfo_notrack%,No track,Artist: %artist%$char(10)Title: %title%$char(10)Album: %album%)


thats what mine is, and i just got a fresh install so that should be it.

foo_uie_trackinfo

Reply #657

Could someone post the default trackinfo string?

Heh, I seem to have nuked it


Code: [Select]
Mode: %_trackinfo_mode%$char(10)$char(10)$if(%_trackinfo_notrack%,No track,Artist: %artist%$char(10)Title: %title%$char(10)Album: %album%)


thats what mine is, and i just got a fresh install so that should be it.


Thanks for that.

foo_uie_trackinfo

Reply #658
1) [Edit - WHOOPS I should have RTFM.]

2)Is it possible to get the current width of the panel as a variable, so I can do some code to trim the lengths of the strings I'm displaying accordingly?  I have a very simple but fairly big 1 line track panel info, and I dont want it to be allowed to get bigger than the width of the track panel OR spill onto a new line.

Thanks!

foo_uie_trackinfo

Reply #659
2)Is it possible to get the current width of the panel as a variable, so I can do some code to trim the lengths of the strings I'm displaying accordingly?  I have a very simple but fairly big 1 line track panel info, and I dont want it to be allowed to get bigger than the width of the track panel OR spill onto a new line.

No, this isn't possible.  What I've been doing, and I'm sure others as well, is using a fixed-width font and just finding out how many characters wide the panel is by trial and error.

foo_uie_trackinfo

Reply #660
Since vis_projectM isn't going anywhere soon, I decided to hack on this for a bit.
A new version is up, same location:
http://stephan.kochen.nl/proj/foobar2000.html#trackinfo

It now has an option for what to do when text is too long to fit; you can wrap like before, but also have it cut off and paste an ellipsis at the end, or scroll the text (like a marquee, great for single line trackinfos if you ask me. )

foo_uie_trackinfo

Reply #661
Since vis_projectM isn't going anywhere soon, I decided to hack on this for a bit.
A new version is up, same location:
http://stephan.kochen.nl/proj/foobar2000.html#trackinfo

It now has an option for what to do when text is too long to fit; you can wrap like before, but also have it cut off and paste an ellipsis at the end, or scroll the text (like a marquee, great for single line trackinfos if you ask me. )
Thanks for the update. When you have time, drop down menus in the settings aren't working correctly on Win2k (I have to use the keyboard to make a selection).

Alessandro

foo_uie_trackinfo

Reply #662
Since vis_projectM isn't going anywhere soon, I decided to hack on this for a bit.
A new version is up, same location:
http://stephan.kochen.nl/proj/foobar2000.html#trackinfo

It now has an option for what to do when text is too long to fit; you can wrap like before, but also have it cut off and paste an ellipsis at the end, or scroll the text (like a marquee, great for single line trackinfos if you ask me. )


Good news..

foo_uie_trackinfo

Reply #663
great work g-lite, any chance of getting the panel to work with $tab() and $char(9) or a right align type thing?

also how do you keep your config when upgrading to your newest version cause it just wiped mine.

lucky i backed mine up.

perhaps you can make an option to save the config to a file somewhere??

foo_uie_trackinfo

Reply #664
Thanks for the update. When you have time, drop down menus in the settings aren't working correctly on Win2k (I have to use the keyboard to make a selection).

Alessandro

That's odd. I'm on XP, but even in the classic theme I can't reproduce this. I don't really have a 2k box on hand. :/

great work g-lite, any chance of getting the panel to work with $tab() and $char(9) or a right align type thing?

also how do you keep your config when upgrading to your newest version cause it just wiped mine.

lucky i backed mine up.

perhaps you can make an option to save the config to a file somewhere??

That's rather odd aswell, I added some code to import from the old configuration, and tested it, which worked fine for me. :/

I'll look into the $tab() thing. I'm not sure how it's supposed to behave though: should tabs works like regular tabs, or should I have them 'jump forward' in text alignment (left -> center and center -> right, so you can have multiple alignments on a single line.)

Problem is, I can't think of a good way to combine regular tabs with changing alignment on a single line, so right now I'm thinking it's one or the other. Multiple alignments on a single line seem to be the most useful for a trackinfo panel IMO.

foo_uie_trackinfo

Reply #665
Thanks for the update. When you have time, drop down menus in the settings aren't working correctly on Win2k (I have to use the keyboard to make a selection).

Alessandro

That's odd. I'm on XP, but even in the classic theme I can't reproduce this. I don't really have a 2k box on hand. :/
Yeah, I know. It seems to be a recurring problem with Win2k: I experienced it with other plug-ins as well (namely foo_pod and foo_browser, IIRC). Not that this is of any help to you...

Anyway, I can live with it.

Alessandro

foo_uie_trackinfo

Reply #666
I remember that this problem already occurred long before (with components for  0.6/0.7). I think it was related to explicitly setting the size of the combobox in its poup state. You can do this in the resource editor by selecting the combobox and clicking on the down arrow part. I hope I remember this correctly.

 

foo_uie_trackinfo

Reply #667
No, this isn't possible.  What I've been doing, and I'm sure others as well, is using a fixed-width font and just finding out how many characters wide the panel is by trial and error.


Interesting, I thought since UI columns playlist did it (trimmed everything as as the window width is resisized) there would be a function somewhere in TAGZ.

At the moment I'm just trimming everything with an arbitary value to make it appear like it's being resized like UI columns...ie...

Code: [Select]
 $ifgreater($len(%artist%),23,$cut(%artist%,20)...,[%artist%])


If I have the player really small the album name might spill over from the first line, but since my track info is just 1 line deep, it looks like it gets cut off

foo_uie_trackinfo

Reply #668
Interesting, I thought since UI columns playlist did it (trimmed everything as as the window width is resisized) there would be a function somewhere in TAGZ.

Well, the good news is that G-Lite's updated version (see a few posts before this one) supposedly has what you're looking for now supported.  I'm going to try it out now and see if I can retire my scrolling code :-P

foo_uie_trackinfo

Reply #669
You _COULD_ make tabs behave like in columnsUI :
TEXT $tab() CENTERED_TEXT $tab() RIGHT_ALIGN
TEXT $tab()$tab() 2/3_CENTER_ALIGNED_TEXT $tab() RIGHT_ALIGNED_TEXT

basically, you count the number of tabs, and place the text at fractions of the full width based on that.

foo_uie_trackinfo

Reply #670
Hint: That's what uTextOutTabbed does if you pass it the right parameters.



foo_uie_trackinfo

Reply #673
Yes.

foo_uie_trackinfo

Reply #674
Alright, new version again:
http://stephan.kochen.nl/proj/foobar2000.html#trackinfo

Changes:
  • $tab() support, at the expense of the $char(1) hack to support alignment. You should be able to get the same effect with $tab()s though. ("$tab()TEXT$tab()" to center align, "$tab()TEXT" to right align)
    Thanks foosion for helping me get this working.
  • I think I found a small bug.

    Panel not in now playing mode.
    If you select a playing track its title in the panel goes yellow.
    At the end of the track, when FB goes to play the next one, the title of the old one (not playing anymore) stays yellow.

    Fixed this.
  • Miscellaneous fixes, it should be a bit more efficient (stores compiled titleformat), but I doubt anyone really cares.