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 814756 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

foo_uie_trackinfo

Reply #325
I'm making an animation for the trackinfo panel, and now I need a counter, just a simple variable which increases.

I've tried everything, and I can;t get it to work! How do I make a variable, update it with 1 and display it? Anyone?

Thanks in advance and I'll be sure to share my string =)

foo_uie_trackinfo

Reply #326
Axalian: You can't make variables which survive from second to second.  Each screen refresh is independent of the past screen refreshs.  I think a common practice, though, is to use %time_elapsed_seconds% as a counter.  You can combine it with $mod() and other foobar math functions to get any count you need.  For instance, the following code counts from 0 to 9:

Code: [Select]
$mod(%time_elapsed_seconds%,10)

foo_uie_trackinfo

Reply #327
Quote
Axalian: You can't make variables which survive from second to second.  Each screen refresh is independent of the past screen refreshs.  I think a common practice, though, is to use %time_elapsed_seconds% as a counter.  You can combine it with $mod() and other foobar math functions to get any count you need.  For instance, the following code counts from 0 to 9:

Code: [Select]
$mod(%time_elapsed_seconds%,10)

[a href="index.php?act=findpost&pid=293954"][{POST_SNAPBACK}][/a]


Thanks, but i need something that loops indefinetly (well, till the next track, because it'll reset the trackinfo) and it's already in such a method (the %time_elapsed_seconds method)... Any ideas?

foo_uie_trackinfo

Reply #328
Quote
Quote
Axalian: You can't make variables which survive from second to second.  Each screen refresh is independent of the past screen refreshs.  I think a common practice, though, is to use %time_elapsed_seconds% as a counter.  You can combine it with $mod() and other foobar math functions to get any count you need.  For instance, the following code counts from 0 to 9:

Code: [Select]
$mod(%time_elapsed_seconds%,10)

[a href="index.php?act=findpost&pid=293954"][{POST_SNAPBACK}][/a]


Thanks, but i need something that loops indefinetly (well, till the next track, because it'll reset the trackinfo) and it's already in such a method (the %time_elapsed_seconds method)... Any ideas?
[a href="index.php?act=findpost&pid=293956"][{POST_SNAPBACK}][/a]

there is no way to do loops independant, like the poster above said.  Why don't you tell us what youre trying to do, and maybe we can come up with ideas on how to do it.

foo_uie_trackinfo

Reply #329
I'm trying to make a Pong animation, with a score board that updates. The animation is done, but the counting is seemingly impossible

foo_uie_trackinfo

Reply #330
Quote
I'm trying to make a Pong animation, with a score board that updates. The animation is done, but the counting is seemingly impossible
[{POST_SNAPBACK}][/a]


I decided to just drop the idea of a scoreboard and make it loop.

[a href="http://www.axalian.com/store/pong.txt]Pong code[/url]

You need to use courier new as your trackinfo font or the spacing will be killed.

foo_uie_trackinfo

Reply #331
Quote
Quote
I'm trying to make a Pong animation, with a score board that updates. The animation is done, but the counting is seemingly impossible
[{POST_SNAPBACK}][/a]


I decided to just drop the idea of a scoreboard and make it loop.

[a href="http://www.axalian.com/store/pong.txt]Pong code[/url]

You need to use courier new as your trackinfo font or the spacing will be killed.
[a href="index.php?act=findpost&pid=294326"][{POST_SNAPBACK}][/a]

Interseting idea, though a little buggy (the '|' sometimes disappear)
You could maybe introduce some sort of randomness to change the diretion of the ball and also the score

foo_uie_trackinfo

Reply #332
Quote
Interseting idea, though a little buggy (the '|' sometimes disappear)
You could maybe introduce some sort of randomness to change the diretion of the ball and also the score
[a href="index.php?act=findpost&pid=294357"][{POST_SNAPBACK}][/a]


The | changes to white when it's 'hit'. Maybe that's the problem =) And I'm just learning foobar coding so those suggestions are great, but beyond my scope of knowledge

foo_uie_trackinfo

Reply #333
Is there any command to display file path?

foo_uie_trackinfo

Reply #334
Quote
Is there any command to display file path?[a href="index.php?act=findpost&pid=295646"][{POST_SNAPBACK}][/a]

%_path% or %_path_raw% should work. You could find this info in your titleformatting help (c:/Program Files/foobar2000/titleformat_help.html).
f to c to f to c

foo_uie_trackinfo

Reply #335
I have it set to display the filename and lyrics:

Code: [Select]
%_filename%$char(10)$char(10)

[$iflonger($replace($meta(lyrics),$char(13),),2000,
$cut($replace($meta(lyrics),$char(13),),500)'(...)',
$replace($meta(lyrics),$char(13),))$char(10)]


and it works beautifully. But is there a way to make it so that the lyrics/text can be selected (and then copied)?

foo_uie_trackinfo

Reply #336
Quote
and it works beautifully. But is there a way to make it so that the lyrics/text can be selected (and then copied)?

No. FEATURE REQUEST! This would be useful. Also if you could force the panel for doing line breaks.

foo_uie_trackinfo

Reply #337
Quote
No. FEATURE REQUEST! This would be useful. Also if you could force the panel for doing line breaks.
[a href="index.php?act=findpost&pid=296759"][{POST_SNAPBACK}][/a]

Not sure if this is what you mean, but putting "$char(10)" in your string will give you a line break.

foo_uie_trackinfo

Reply #338
Quote
Quote
and it works beautifully. But is there a way to make it so that the lyrics/text can be selected (and then copied)?

No. FEATURE REQUEST! This would be useful. Also if you could force the panel for doing line breaks.
[a href="index.php?act=findpost&pid=296759"][{POST_SNAPBACK}][/a]


Or if word wrap is what you mean, that's already in there.

foo_uie_trackinfo

Reply #339
Is somebody interrested in this code to show the current Lyrics in track info (those wich are created with lyricmake) ?
i think it's nice: (and hope you understand the german settings ;-)
Code: [Select]
//______________\\
//LyRiC cOdE v.0.2\\
//---------------------\\

//_____________________________________
//Einstellungen:
//--------------------------------------------------------
$puts(Modus,1)
$puts(TextFarbe,$rgb(100,255,0))
$puts(RestFarbe,$rgb(180,220,0))
$puts(RestZeichen,~)
$puts(Text2Farbe,$rgb(255,200,0))
$puts(Lyrictag,$if2($meta(Lyric),$meta(Lyrics)))


//_____________________________________
//Programm:
//-------------------------------------------------------
//Lade Zeiten in Sekunden
$puts(vor0sec,%_time_elapsed_seconds%)
$puts(vor1sec,$sub(%_time_elapsed_seconds%,1))
$puts(vor2sec,$sub(%_time_elapsed_seconds%,2))
$puts(vor3sec,$sub(%_time_elapsed_seconds%,3))
$puts(vor4sec,$sub(%_time_elapsed_seconds%,4))
$puts(vor5sec,$sub(%_time_elapsed_seconds%,5))
$puts(vor6sec,$sub(%_time_elapsed_seconds%,6))
$puts(in1sec,$add(%_time_elapsed_seconds%,1))
$puts(in2sec,$add(%_time_elapsed_seconds%,2))
$puts(in3sec,$add(%_time_elapsed_seconds%,3))
$puts(in4sec,$add(%_time_elapsed_seconds%,4))
$puts(in5sec,$add(%_time_elapsed_seconds%,5))
$puts(in6sec,$add(%_time_elapsed_seconds%,6))

//Lade Zeiten
$puts(vor0,'['$num($div($get(vor0sec),60),2):$num($mod($get(vor0sec),60),2))
$puts(vor1,'['$num($div($get(vor1sec),60),2):$num($mod($get(vor1sec),60),2))
$puts(vor2,'['$num($div($get(vor2sec),60),2):$num($mod($get(vor2sec),60),2))
$puts(vor3,'['$num($div($get(vor3sec),60),2):$num($mod($get(vor3sec),60),2))
$puts(vor4,'['$num($div($get(vor4sec),60),2):$num($mod($get(vor4sec),60),2))
$puts(vor5,'['$num($div($get(vor5sec),60),2):$num($mod($get(vor5sec),60),2))
$puts(vor6,'['$num($div($get(vor6sec),60),2):$num($mod($get(vor6sec),60),2))
$puts(in1,'['$num($div($get(in1sec),60),2):$num($mod($get(in1sec),60),2))
$puts(in2,'['$num($div($get(in2sec),60),2):$num($mod($get(in2sec),60),2))
$puts(in3,'['$num($div($get(in3sec),60),2):$num($mod($get(in3sec),60),2))
$puts(in4,'['$num($div($get(in4sec),60),2):$num($mod($get(in4sec),60),2))
$puts(in5,'['$num($div($get(in5sec),60),2):$num($mod($get(in5sec),60),2))
$puts(in6,'['$num($div($get(in6sec),60),2):$num($mod($get(in6sec),60),2))

//Suche und wähle Anfang des Textes
$puts(TextAnfang,$if3(
$strstr($get(Lyrictag),$get(vor0)),
$strstr($get(Lyrictag),$get(vor1)),
$strstr($get(Lyrictag),$get(vor2)),
$strstr($get(Lyrictag),$get(vor3)),
$strstr($get(Lyrictag),$get(vor4)),
$strstr($get(Lyrictag),$get(vor5)),
$strstr($get(Lyrictag),$get(vor6)),
kein Text))
$puts(Text2Anfang,$if3(
$strstr($get(Lyrictag),$get(in1)),
$strstr($get(Lyrictag),$get(in2)),
$strstr($get(Lyrictag),$get(in3)),
$strstr($get(Lyrictag),$get(in4)),
$strstr($get(Lyrictag),$get(in5)),
$strstr($get(Lyrictag),$get(in6)),
kein Text))

//Berechne verbleibende Sekunden
$puts(nochsec,
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in1))),1)
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in2))),2)
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in3))),3)
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in4))),4)
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in5))),5)
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in6))),6))

//Erstelle Rest
$puts(Rest,
$repeat($get(RestZeichen),$get(nochsec)))

//Berechne verstrichene Spielzeit
$puts(schonsec,
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor1))),1)
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor2))),2)
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor3))),3)
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor4))),4)
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor5))),5)
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor6))),6))

//Berechne gesamtsec
$puts(gesamtsec,$add($get(schonsec),$get(nochsec)))

//Erstelle Text
$puts(Textbeta,
$insert($get(Lyrictag),,$add($get(TextAnfang),8)))
$puts(Text2beta,
$insert($get(Lyrictag),,$add($get(Text2Anfang),8)))

//Suche Ende
$puts(Text,$left($get(Textbeta),$sub($strstr($get(Textbeta),$char(10)),1)))
$puts(Text2,$left($get(Text2beta),$sub($strstr($get(Text2beta),$char(10)),1)))

//Inhalt Prüfen
$if($strcmp($get(TextAnfang),kein Text),
$puts(Text,))
$if($strcmp($get(Text2Anfang),kein Text),
$puts(Text2,))

//Berechne Schnitt
$puts(Schnitt,$mul($div($len($get(text)),$get(gesamtsec)),$get(schonsec)))

//Erstelle SchnittText
$puts(SchnittText,$insert($get(Text),,$get(Schnitt)))

//Inhalt prüfen
$puts(SchnittText,
$ifgreater($get(schonsec),0,
$insert($get(SchnittText),,$strstr($get(SchnittText), )),
$get(SchnittText)))

//Ausgabe
$select($get(Modus),
$get(TextFarbe)$get(Text)$char(10)
$get(RestFarbe)$get(Rest)$char(10)
$get(Text2Farbe)$get(Text2)
,
$if($strcmp($get(SchnittText),),$get(RestFarbe)$get(Rest),
$get(TextFarbe)$get(SchnittText))
' '$get(Text2Farbe)$get(Text2)
)
Want more Features?

foo_uie_trackinfo

Reply #340
Quote
Not sure if this is what you mean, but putting "$char(10)" in your string will give you a line break.
[{POST_SNAPBACK}][/a]


And what number do I need to use to get tab char? I've tried $char(09) [info from [a href="http://www.neurophys.wisc.edu/www/comp/docs/ascii.html]http://www.neurophys.wisc.edu/www/comp/docs/ascii.html[/url]] but it doesn't work

foo_uie_trackinfo

Reply #341
Quote
Is somebody interrested in this code to show the current Lyrics in track info (those wich are created with lyricmake) ?
i think it's nice: (and hope you understand the german settings ;-)
Code: [Select]
//______________\\
//LyRiC cOdE v.0.2\\
//---------------------\\

//_____________________________________
//Einstellungen:
//--------------------------------------------------------
$puts(Modus,1)
$puts(TextFarbe,$rgb(100,255,0))
$puts(RestFarbe,$rgb(180,220,0))
$puts(RestZeichen,~)
$puts(Text2Farbe,$rgb(255,200,0))
$puts(Lyrictag,$if2($meta(Lyric),$meta(Lyrics)))


//_____________________________________
//Programm:
//-------------------------------------------------------
//Lade Zeiten in Sekunden
$puts(vor0sec,%_time_elapsed_seconds%)
$puts(vor1sec,$sub(%_time_elapsed_seconds%,1))
$puts(vor2sec,$sub(%_time_elapsed_seconds%,2))
$puts(vor3sec,$sub(%_time_elapsed_seconds%,3))
$puts(vor4sec,$sub(%_time_elapsed_seconds%,4))
$puts(vor5sec,$sub(%_time_elapsed_seconds%,5))
$puts(vor6sec,$sub(%_time_elapsed_seconds%,6))
$puts(in1sec,$add(%_time_elapsed_seconds%,1))
$puts(in2sec,$add(%_time_elapsed_seconds%,2))
$puts(in3sec,$add(%_time_elapsed_seconds%,3))
$puts(in4sec,$add(%_time_elapsed_seconds%,4))
$puts(in5sec,$add(%_time_elapsed_seconds%,5))
$puts(in6sec,$add(%_time_elapsed_seconds%,6))

//Lade Zeiten
$puts(vor0,'['$num($div($get(vor0sec),60),2):$num($mod($get(vor0sec),60),2))
$puts(vor1,'['$num($div($get(vor1sec),60),2):$num($mod($get(vor1sec),60),2))
$puts(vor2,'['$num($div($get(vor2sec),60),2):$num($mod($get(vor2sec),60),2))
$puts(vor3,'['$num($div($get(vor3sec),60),2):$num($mod($get(vor3sec),60),2))
$puts(vor4,'['$num($div($get(vor4sec),60),2):$num($mod($get(vor4sec),60),2))
$puts(vor5,'['$num($div($get(vor5sec),60),2):$num($mod($get(vor5sec),60),2))
$puts(vor6,'['$num($div($get(vor6sec),60),2):$num($mod($get(vor6sec),60),2))
$puts(in1,'['$num($div($get(in1sec),60),2):$num($mod($get(in1sec),60),2))
$puts(in2,'['$num($div($get(in2sec),60),2):$num($mod($get(in2sec),60),2))
$puts(in3,'['$num($div($get(in3sec),60),2):$num($mod($get(in3sec),60),2))
$puts(in4,'['$num($div($get(in4sec),60),2):$num($mod($get(in4sec),60),2))
$puts(in5,'['$num($div($get(in5sec),60),2):$num($mod($get(in5sec),60),2))
$puts(in6,'['$num($div($get(in6sec),60),2):$num($mod($get(in6sec),60),2))

//Suche und wähle Anfang des Textes
$puts(TextAnfang,$if3(
$strstr($get(Lyrictag),$get(vor0)),
$strstr($get(Lyrictag),$get(vor1)),
$strstr($get(Lyrictag),$get(vor2)),
$strstr($get(Lyrictag),$get(vor3)),
$strstr($get(Lyrictag),$get(vor4)),
$strstr($get(Lyrictag),$get(vor5)),
$strstr($get(Lyrictag),$get(vor6)),
kein Text))
$puts(Text2Anfang,$if3(
$strstr($get(Lyrictag),$get(in1)),
$strstr($get(Lyrictag),$get(in2)),
$strstr($get(Lyrictag),$get(in3)),
$strstr($get(Lyrictag),$get(in4)),
$strstr($get(Lyrictag),$get(in5)),
$strstr($get(Lyrictag),$get(in6)),
kein Text))

//Berechne verbleibende Sekunden
$puts(nochsec,
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in1))),1)
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in2))),2)
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in3))),3)
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in4))),4)
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in5))),5)
$if($strcmp($get(Text2Anfang),$strstr($get(Lyrictag),$get(in6))),6))

//Erstelle Rest
$puts(Rest,
$repeat($get(RestZeichen),$get(nochsec)))

//Berechne verstrichene Spielzeit
$puts(schonsec,
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor1))),1)
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor2))),2)
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor3))),3)
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor4))),4)
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor5))),5)
$if($strcmp($get(TextAnfang),$strstr($get(Lyrictag),$get(vor6))),6))

//Berechne gesamtsec
$puts(gesamtsec,$add($get(schonsec),$get(nochsec)))

//Erstelle Text
$puts(Textbeta,
$insert($get(Lyrictag),,$add($get(TextAnfang),8)))
$puts(Text2beta,
$insert($get(Lyrictag),,$add($get(Text2Anfang),8)))

//Suche Ende
$puts(Text,$left($get(Textbeta),$sub($strstr($get(Textbeta),$char(10)),1)))
$puts(Text2,$left($get(Text2beta),$sub($strstr($get(Text2beta),$char(10)),1)))

//Inhalt Prüfen
$if($strcmp($get(TextAnfang),kein Text),
$puts(Text,))
$if($strcmp($get(Text2Anfang),kein Text),
$puts(Text2,))

//Berechne Schnitt
$puts(Schnitt,$mul($div($len($get(text)),$get(gesamtsec)),$get(schonsec)))

//Erstelle SchnittText
$puts(SchnittText,$insert($get(Text),,$get(Schnitt)))

//Inhalt prüfen
$puts(SchnittText,
$ifgreater($get(schonsec),0,
$insert($get(SchnittText),,$strstr($get(SchnittText), )),
$get(SchnittText)))

//Ausgabe
$select($get(Modus),
$get(TextFarbe)$get(Text)$char(10)
$get(RestFarbe)$get(Rest)$char(10)
$get(Text2Farbe)$get(Text2)
,
$if($strcmp($get(SchnittText),),$get(RestFarbe)$get(Rest),
$get(TextFarbe)$get(SchnittText))
' '$get(Text2Farbe)$get(Text2)
)
Want more Features?
[a href=\"index.php?act=findpost&pid=297512\"][{POST_SNAPBACK}][/a]

don't know, perhaps english settings will help a little bit

foo_uie_trackinfo

Reply #342
Quote
And what number do I need to use to get tab char? I've tried $char(09) [info from http://www.neurophys.wisc.edu/www/comp/docs/ascii.html] but it doesn't work
[a href="index.php?act=findpost&pid=297603"][{POST_SNAPBACK}][/a]


$char(9) will work in other places, but it doesn't work in the trackinfo panel, I think.  I remember $char(9) being mentioned as a feature request or something that's being worked on, but yeah, I don't think it's working in the current version.

foo_uie_trackinfo

Reply #343
I'm just starting to play with foo_pod and so far am rather impressed - well done Aero, Otto &co.

One question regarding the treatment of multidisc albums.  iTunes has a box for Disc 1 of 6, but when you save such info it doesn't appear in any tags, suggesting it is instead stored somewhere in a db on the disc.  The godfather tagging program has a tag called "partinset" and i've seen other people suggest a pair of tags DiscNumber and Disccount. 

I'd like foo_pod to transfer this information when it populates my ipod - is there a default tag that it looks for with this information in it?

Mike

foo_uie_trackinfo

Reply #344
Quote
I'm just starting to play with foo_pod and so far am rather impressed - well done Aero, Otto &co.

One question regarding the treatment of multidisc albums.  iTunes has a box for Disc 1 of 6, but when you save such info it doesn't appear in any tags, suggesting it is instead stored somewhere in a db on the disc.  The godfather tagging program has a tag called "partinset" and i've seen other people suggest a pair of tags DiscNumber and Disccount. 

I'd like foo_pod to transfer this information when it populates my ipod - is there a default tag that it looks for with this information in it?

Mike
[{POST_SNAPBACK}][/a]

I'm thinking you meant to post in the foo_pod [ [a href="http://www.hydrogenaudio.org/forums/index.php?showtopic=19156]http://www.hydrogenaudio.org/forums/index....showtopic=19156[/url] ] thread, not the foo_uie_trackinfo thread

foo_uie_trackinfo

Reply #345
Quote
I'm thinking you meant to post in the foo_pod [ http://www.hydrogenaudio.org/forums/index....showtopic=19156 ] thread, not the foo_uie_trackinfo thread
[a href="index.php?act=findpost&pid=298841"][{POST_SNAPBACK}][/a]


you are quite correct...it was about 2AM perth time and the brain wasn't quite up to its usual standards.

foo_uie_trackinfo

Reply #346
My very simple, mostly original info. I got the progressbar from somewhere in this thread, forget where.

Code: [Select]
$if(%_trackinfo_notrack%,No track playing,
$if(%_trackinfo_nowplaying%,
$char(1)C$transition(-S O N G,000000,00AA00)     $transition(I N F O-,00AA00,000000)
,$char(1)C$transition(-S O N G,000000,0000AA)     $transition(I N F O-,0000AA,000000))
$char(10)Artist:$char(10)$char(1)C%artist%$char(10)$char(10)
Title:$char(10)$char(1)C$rgb(150,150,150)$if(%_isplaying%,$if(%_ispaused%,■   , ► ),)$rgb(0,0,0)%title%$char(10)$char(10)
Album:$char(10)$char(1)C%album% $rgb(150,150,150)'['%date%']'$char(10)
)

// BAR
$if(%_trackinfo_nowplaying%,
$char(10)
$char(1)C$puts(len,$muldiv(%_time_elapsed_seconds%,18,%_time_total_seconds%))
$transition($repeat(█,$get(len)),$rgb(150,150,150),$rgb(115,150,175))
$repeat(█,$sub(18,$get(len)))
$char(10),)
//TIME
$char(1)R$rgb(115,150,175)[%_time_elapsed% / ][%_length%]
//ENCODING
$char(10)$char(1)R$rgb(115,150,175)%__codec% @ %__bitrate% kb/s



- Play sign changes when song is paused
- 'Song info' changes color for different modes

foo_uie_trackinfo

Reply #347
Quote
Quote
No. FEATURE REQUEST! This would be useful. Also if you could force the panel for doing line breaks.
[a href="index.php?act=findpost&pid=296759"][{POST_SNAPBACK}][/a]

Not sure if this is what you mean, but putting "$char(10)" in your string will give you a line break.
[a href="index.php?act=findpost&pid=296869"][{POST_SNAPBACK}][/a]

Well there'll probably be some string cutting trouble if you have (like me) long file names without spaces. This would screw up my code more, and it is quite messy anyway...

foo_uie_trackinfo

Reply #348
I just found out that after reaching the end of the last track of a playlist the trackinfo panel still shows that track as if it's playing. Is it like that just for me or else?

foo_uie_trackinfo

Reply #349
Very bored today so been adding more stuff to my trackinfo, one day I'll make the coding nicer with color codes etc. Anyway it now uses the play counter plugin and displays the last time played and total plays in a very minamilist way. There's lots of stuff I have taken from this thread, it is by no means original.



Code: [Select]
$if(%_trackinfo_notrack%,No track playing,
$if(%_trackinfo_nowplaying%,
$char(1)C$transition(-S O N G,000000,00AA00)    $transition(I N F O-,00AA00,000000)
,$char(1)C$transition(-S O N G,000000,0000AA)    $transition(I N F O-,0000AA,000000))
$char(10)Artist:$char(10)$char(1)C%artist%$char(10)$char(10)
Title:$char(10)$char(1)C$rgb(150,150,150)$if(%_isplaying%,$if(%_ispaused%,■  , ► ),)$rgb(0,0,0)$replace(%title%,'(',808080'(',')',')','[',808080'[',']',']')$char(10)$char(10)
$if(%album%,Album:$char(10)$char(1)C%album% $rgb(150,150,150)[ '['%date%']']$char(10),)
$if($or(%origartist%,%origalbum%,%origyear%),
$rgb(116,175,170)Original:$char(10)
$rgb(155,180,197)$if(%origartist%,%origartist$char(10),)$rgb(155,180,197)
$if2(%origalbum%,)
$rgb(150,150,150)$if(,,)[ '['%origyear%']']$char(10),)

// BAR
$if(%_trackinfo_nowplaying%,
$char(10)
$char(1)C$puts(len,$muldiv(%_time_elapsed_seconds%,25,%_time_total_seconds%))
$transition($repeat(█,$get(len)),$rgb(150,150,150),$rgb(115,150,175))
$repeat(█,$sub(25,$get(len)))
$char(10),)

//TIME
$char(1)R$rgb(115,150,175)[%_time_elapsed% / ][%_length%]

//PLAY COUNTER
$char(10)
$if(%play_counter%,$char(1)R$rgb(115,150,175)♫: $rgb(0,0,0)%play_counter%,)

////  Play date needs to be in DDMMYY format
$if(%last_played%,
$if($get(p1), 9a9a9aon,$char(10)$char(1)R$rgb(115,150,175)◙)

$puts(pday,$left(%last_played%,2))
$if($strcmp($left($get(pday),1),0),$puts(pday,$right($get(pday),1)))

$if($or($strcmp($get(pday),11),$strcmp($get(pday),12),
$strcmp($get(pday),13)),$puts(xx,th),
$if($strcmp($right($get(pday),1),1),$puts(xx,st),
$if($strcmp($right($get(pday),1),2),$puts(xx,nd),
$if($strcmp($right($get(pday),1),3),$puts(xx,rd),
$puts(xx,th)))))

$puts(pmonth,$select($substr(%last_played%,3,4),
Jan,Feb,March,April,May,June,July,
Aug,Sept,Oct,Nov,Dec))

' '$get(pmonth) $get(pday)$get(xx) $get(pyear)
$if(%play_time%, 9a9a9aat $get(ptime))9a9a9a$char(10))

// filesize output
$puts(fsize,$div(%_filesize%,1048576).$num($div($mul($mod(%_filesize%,1048576),100),1048576),2) $get(anno)MB$char(10))
$char(1)R$rgb(115,150,175)$get(fsize)

//ENCODING
$char(1)R $rgb(115,150,175)$if($stricmp(%__codec%,Windows Media Audio V7/V8),WMA,%__codec%) @ %__bitrate% kb/s

//SCROLLING PATH
$if(%_trackinfo_nowplaying%,
$char(10)$char(10)
$rgb(180,205,220)$puts(padding,$char(160)$char(160)•$char(160)$char(160))
$puts(size,34)
$puts(title,$replace(%_path%, ,$char(160)))

$ifgreater($len2($get(title)),$get(size),
// scroll text
$puts(title,$get(title)$get(padding))
$puts(start,$add(1,$mod( %_time_elapsed_seconds%,$len($get(title)))))
$puts(display,
$cut(
$substr($get(title)$get(title),
 $get(start),
 $add(
  $get(start),
  $get(size)
 )
)
,$add($get(size),1))
)
$get(display)$ifgreater($len2($get(display)),$get(size),,$char(160)),
// normal display
$get(title)
),))