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: [CUI]foobar scripts? (Read 5056 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[CUI]foobar scripts?

Hey guys. As you can see, I'm a complete newbie here. If I'm posting this in the wrong place feel free to flame me.

Anyways: I've got this as part of my 'Item Details' panel in Columns UI:


$set_font(Segoe UI,12,)
$crlf()$rgb(2000,100,100)%playback_time%$rgb(0,0,0)/$rgb(0,100,200)%length%

The problem is, when the playback is STOPPED, the 'playback time' field becomes a question mark.

Now, my question: How can I make the line appear only when the item is actually playing?

Is it possible?

Here's the whole thing, by the way. It's pretty basic.

$set_font(Segoe UI,12,)$crlf()[$rgb(200,60,0)Song:$rgb(0,0,0) $set_font(Tahoma,10,)%title%]

$set_font(Segoe UI,12,)$crlf()[$rgb(0,200,0)Album: $rgb(0,0,0)$set_font(Tahoma,10,)%album%]

$set_font(Segoe UI,12,)$crlf()[$rgb(0,12,223)Artist: $rgb(0,0,0)$set_font(Tahoma,10,)%artist%]

$set_font(Segoe UI,12,)
$crlf()$rgb(2000,100,100)%playback_time%$rgb(0,0,0)/$rgb(0,100,200)%length%


So, if anyone could help me, that would be great. Thanks!

 

[CUI]foobar scripts?

Reply #1
Use [ ] to only display if it's a value.
It's also documented in the Title Format Help.

And this section is used for dev help.
Windows 10 Pro x64 // foobar2000 1.3.10