HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: 4nd3h on 2010-01-30 15:53:14

Title: [CUI]foobar scripts?
Post by: 4nd3h on 2010-01-30 15:53:14
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!
Title: [CUI]foobar scripts?
Post by: Andreasvb on 2010-01-30 15:58:36
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.