
I used two track_info_mod , one is on the top another is at the bottom
as you see the built-in progress bar, the top track_info_mod can't update the progress while playing
the bottom track_info_mod can't update the playing time while playing
What's the problem ??
code used for top track_info_mod
CODE
$imageabs($sub($div(%_width%,2),400),0,neo1\back1.png,)
$if(%isplaying%,
$puts(progress,$muldiv(%playback_time_seconds%,$sub(%_width%,24),%length_seconds%))
$drawrect(10,82,$sub(%_width%,20),8,brushcolor-null pencolor-120-120-120),)
$ifgreater($get(progress),0,$padding(9,82)$drawrect(3,2,$get(progress),4,brushcolor-90-90-90 pencolor-nulll),)
$if(%_isplaying%,
$font(calibri,14,boldshadow,170-170-170)$alignabs(0,4,%_width%,30,center,)%artist%
$alignabs(0,28,%_width%,20,center,)$font(calibri,8,boldshadow,170-230-250)"%title%"
$alignabs(0,44,%_width%,20,center,)$font(calibri,8,boldshadow,140-140-140)from
$font(calibri,8,boldshadow,210-210-210)"%album%"
$alignabs(0,61,%_width%,20,center,)$if($strcmp(%play_counter%,?),
$font(Calibri,8,boldshadow,180-180-180)Playing song for fist time,
$if($strcmp(%play_counter%,1),$font(Calibri,8,boldshadow,180-180-180)Song played %play_counter% time',' on ,Song played %play_counter% times. Last on )
$if($strcmp($left($right(%last_played%,10),1),1),Sunday', ',)
$if($strcmp($left($right(%last_played%,10),1),2),Monday', ',)
$if($strcmp($left($right(%last_played%,10),1),3),Tuesday', ',)
$if($strcmp($left($right(%last_played%,10),1),4),Wednesday', ',)
$if($strcmp($left($right(%last_played%,10),1),5),Thursday', ',)
$if($strcmp($left($right(%last_played%,10),1),6),Friday', ',)
$if($strcmp($left($right(%last_played%,10),1),7),Saturday', ',)
$right(%last_played%,8) at $right($left(%last_played%,16),5))
,
$font(calibri,18,boldshadow,170-170-170)$alignabs(0,10,%_width%,30,center,)Foobar2000
$alignabs(0,46,%_width%,20,center,)$font(calibri,9,boldshadow,170-230-250)Music Player
$alignabs(0,68,%_width%,20,center,)$font(calibri,8,boldshadow,210-210-210)v0.9.3
)
code used at the bottom track_info_mod
CODE
$imageabs($sub($div(%_width%,2),454),5,neo1\back2.png,)
$if(%isplaying%,
$puts(volume,$add($mul($substr($num(%cwb_volume%,4),2,4),-1),100))
$alignabs(10,20,60,200,,)
$font(Calibri,7,glow-50-70-90,170-230-250)
Volume: $get(volume) '%'
$imageabs($sub(%_width%,58),12,'neo1\vol\'$div($add($get(volume),5),10)'.png',)
$alignabs($sub(%_width%,70),45,60,200,right,)
$get(spacer)%_time_elapsed%$if(%_time_total%,' / '%_time_total%,)
$if(%_time_remaining%,$get(spacer),)
$alignabs(10,45,200,200,,)
$if($strstr(%_path_raw%,'tone://'),$if(%_time_total%,%_length%' Seconds of '$replace(%title%,'Tone: ',)' Tone',%title%),)
$if($strstr(%_path_raw%,'silence://'),%_length%' Seconds of Silence',)
$if($strstr(%_path_raw%,'cdda://'),'CDDA',)
$if2(%mp3%,$if2(%__codec%,))
$if($strstr(%_path_raw%,'cdda://'),$get(spacer)'1411kbps',$if(%__bitrate%,$get(spacer)%__bitrate%' kbps ',))
$if(%__extrainfo%,$get(spacer)%__extrainfo% ,)
$if(%__samplerate%,$get(spacer)$cut(%__samplerate%,2)' kHz' ,)
$if(%__channels%,$get(spacer)$ifgreater(%__channels%,1,'Stereo','Mono'),)
,)
$button($sub($div(%_width%,2),64),32,0,0,0,0,neo1\pause1b.png,neo1\pause2b.png,Pause,)
$button($sub($div(%_width%,2),40),31,0,0,0,0,neo1\prev1.png,neo1\prev2.png,Previous,)
$button($add($div(%_width%,2),17),31,0,0,0,0,neo1\next1.png,neo1\next2.png,Next,)
$button($add($div(%_width%,2),44),32,0,0,0,0,neo1\stop1.png,neo1\stop2.png,Stop,)
$button($sub($div(%_width%,2),15),26,0,0,0,0,neo1\play1.png,neo1\play2.png,Play,)
