Help - Search - Members - Calendar
Full Version: Status bar bug in 0.9.5 beta 2
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
yandexx
CODE

%codec% %codec_profile% %bitrate%kbps %samplerate%Hz %channels%'   ¤   '%playback_time%[ / %length%]$tab()[%__replaygain_track_gain%]

$tab() worked fine in beta 1 and older, and made right-aligned text. Now, it creates regular tab like in text-editors.
thuan
It's weird, mine works fine but yours not. Mine is even more complicated but it works fine in both beta 1 and 2.

CODE
$rgb(0,128,255)[%codec% ][%codec_profile% ]$rgb(128,0,0)[$num(%bitrate%,3) kbps ]$if(%_filesize%,$rgb(170,56,194)$ifgreater(%_filesize%,1048575,$div(%_filesize%,1048576).$left($num($muldiv($mod(%filesize%,1048576),100,1048576),2),2) MB,$ifgreater(%_filesize%,1023,$div(%_filesize%,1024).$left($num($muldiv($mod(%_filesize%,1024),100,1024),2),2) KB,%_filesize% B)) )$rgb(0,128,128)$if($strcmp(Vorbis,$codec()),$left($info(tool),$sub($strstr($info(tool),'(ba'),2)),$if($strcmp(AAC,$codec()),$left($info(tool),$sub($strstr($info(tool),'Command'),3)),[$info(tool)]))$tab()[[%playback_time%/]%length% ]'['$if(%last_played%,$puts(diff,$cwb_datediff(%first_played%,%cwb_systemdatetime%))$if($greater($get(diff),364),$div($get(diff),365)y)$puts(diff,$mod($get(diff),365))$if($greater($get(diff),29),$div($get(diff),30)m)$puts(diff,$mod($get(diff),30))$if($greater($get(diff),6),$div($get(diff),7)w)$puts(diff,$mod($get(diff),7))$if($greater($get(diff),0),$get(diff)d,<1d) | $puts(diff,$cwb_datediff(%last_played%,%cwb_systemdatetime%))$if($greater($get(diff),364),$div($get(diff),365)y)$puts(diff,$mod($get(diff),365))$if($greater($get(diff),29),$div($get(diff),30)m)$puts(diff,$mod($get(diff),30))$if($greater($get(diff),6),$div($get(diff),7)w)$puts(diff,$mod($get(diff),7))$if($greater($get(diff),0),$get(diff)d,<1d) | [#%play_count%],Never Played)']'
yandexx
Heh, nice one, and that's strange indeed.
And just now I copy/pasted mine back, and it works.
And-- when I restart foobar2000 it's same again.
Peter
Bug confirmed, thanks for reporting. Temporary workaround: include any color codes to make tab characters expanded, eg. append a simple "$rgb()" to your status bar format string.
/mnt
Moderation: The following posts have been merged into this topic.

I tried Beta 2, for some reason my custom status bar code does not work flawless on this beta but worked fine on foobar 0.9.5 Beta 1 and foobar 0.9.4.5.

foobar 0.9.4.5:

IPB Image

foobar 0.9.5 Beta 2:

IPB Image

Status Bar format:

CODE
$caps2(%codec%[' ('%codec_profile%')'])'   '%bitrate% kbps'   '%samplerate% Hz'   '$caps2($if2($info(mp3_stereo_mode),%channels%))'   |   '%playback_time%[ / %length%]$tab()[Track' 'Gain: %__replaygain_track_gain%]['   'Album' 'Gain: %__replaygain_album_gain%]'   |   '$div(%_filesize%,1048576).$num($muldiv($mod(%_filesize%,1048576),100,1048576),2)' 'MB


Seems $tab works different on beta 2.
thuan
@/mnt: Look at this thread please http://www.hydrogenaudio.org/forums/index....showtopic=58351
/mnt
QUOTE(thuan @ Oct 29 2007, 10:22) *

Thanks, seems like someone reported the bug earlier and there is also a temp fix by adding $rgb().
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.