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: Status bar bug in 0.9.5 beta 2 (Read 4527 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Status bar bug in 0.9.5 beta 2

Code: [Select]
%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.
stimulating the audio nerve directly

Status bar bug in 0.9.5 beta 2

Reply #1
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: [Select]
$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)']'

Status bar bug in 0.9.5 beta 2

Reply #2
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.
stimulating the audio nerve directly

Status bar bug in 0.9.5 beta 2

Reply #3
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.
Microsoft Windows: We can't script here, this is bat country.

Status bar bug in 0.9.5 beta 2

Reply #4
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:



foobar 0.9.5 Beta 2:



Status Bar format:

Code: [Select]
$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.
"I never thought I'd see this much candy in one mission!"