Help - Search - Members - Calendar
Full Version: main window title
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
Divajjn
is it possible to get the main window title text to scroll ?
odyssey
Simple:
CODE
$puts(title,[%artist% - ]['['%album%[ CD%discnumber%][ #%tracknumber%]']' ]%title%)$puts(time,%_time_elapsed_seconds%)$substr($get(title),$mod($get(time),$add($len($get(title)),2)),$len($get(title)))


Congrats for my first code emot-toot.gif ...almost

I have yet to find out how to repeat the string...

Edit: Version 2, with repeating:
CODE
$puts(title,$pad([%artist% - ]['['%album%[ CD%discnumber%][ #%tracknumber%]']' ]%title%,30))
$puts(time,%_time_elapsed_seconds%)
$puts(pos,$add($mod($get(time),$len($get(title))),1))
$substr($get(title),$get(pos),$len($get(title)))
$substr($get(title),1,$get(pos))


Exchange '30' with the length of desired repeating title, or remove $pad'ding if you just want to repeat the titlelength. biggrin.gif
ubi
did a quick testing, $repeat(x,y) almost worked, gotta keep on testing wink.gif
odyssey
QUOTE(ubi @ Oct 25 2006, 00:37) *

did a quick testing, $repeat(x,y) almost worked, gotta keep on testing wink.gif

CODE
$repeat(a,n)
Returns n copies of a. Note that a is evaluated once before its value is used, so $repeat cannot be used for loops.

How can you use that for this purpose?
ubi
CODE
$puts(title,[%artist% - ]%title%)
$puts(time,%_time_elapsed_seconds%)
$substr($get(title),$mod($get(time),$add($len($get(title)),2)),$len($get(title)))$repeat( | [%artist% - ]%title%,2)


works in my 400px wide setup
maybe also works in wider setup with bigger repeat number?
Andrew_TA
Is there anyway to get the foobar version in the title bar with out having to change it everytime you upgrade?
ubi
QUOTE(Andrew_TA @ Oct 25 2006, 01:56) *

Is there anyway to get the foobar version in the title bar with out having to change it everytime you upgrade?

$extra(foobar2000_version)
wiki is your friend...
Andrew_TA
Haha i swear i searched it.. thanks anyway..
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.