IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
[CUI]foobar scripts?
4nd3h
post Jan 30 2010, 16:53
Post #1





Group: Members
Posts: 1
Joined: 30-January 10
Member No.: 77707



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!
Go to the top of the page
+Quote Post
Andreasvb
post Jan 30 2010, 16:58
Post #2





Group: Members
Posts: 1344
Joined: 6-March 04
From: Sweden
Member No.: 12509



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. wink.gif


--------------------
Windows 8.1u3 Pro x64 Media Center // foobar2000 1.3.6
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 25th December 2014 - 08:16