All pastes #452496 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-04-22 09:47 UTC
rendered paste body
//////// Background Image
$imageabs($div($sub(%_width%,300),2),0,\images\Now_Playing.png,)
// PerSecond
$align(center,top) 
//////// Song Info
$char(10) $char(10) $char(10) $char(10)
$font(calibri,16,boldshadow,240-240-240)%artist%$char(10)
$font(calibri,12,boldshadow,160-160-160)[#%track% - ]$iflonger([#%track% -] %title%,28,$font(,9,,)%title%,%title%)$char(10)
[$font(calibri,8,boldshadow,100-100-100)$iflonger(%album% ['('%date%')'],50,$font(,7,,)%album%,%album%)$char(10)]

//////// Tech Info
$char(10)
$font(MS Shell Dig,10,,255-255-255)
$if(%codec_profile%,%codec% - %codec_profile%,%codec%) @ %bitrate% kbps
$font(MS Shell Dig,10,,127-127-127)$char(10) Played %play_count% time$ifequal(%play_count%,1,,s)
$char(10)$font(,8,,63-63-63)Last Played: $if(%last_played%,%last_played%,Never)



//////// Bitrate Bar (DO NOT UNCOMMENT OR REMOVE PERSECOND)
// PerSecond

$puts(bitratebar.width,$sub(%_width%,50))
$puts(bitratebar.offsetx,25)
$puts(bitratebar.offsety,$sub(%_height%,35))
$puts(bitratebar.text,$sub(%_height%,30))
$puts(color.picker,$select($add($mod(%playback_time_seconds%,6),1), pencolor-128-128-0, pencolor-192-192-0, pencolor-255-255-0, pencolor-192-192-0, pencolor-128-128-0, pencolor-64-64-0))

// Frame
$drawrect($get(bitratebar.offsetx),$get(bitratebar.offsety),$get(bitratebar.width),1,pencolor-192-192-192)
$drawrect($get(bitratebar.offsetx),$sub($get(bitratebar.offsety),6),1,12,pencolor-192-192-192)
$drawrect($add($get(bitratebar.offsetx),$get(bitratebar.width)),$sub($get(bitratebar.offsety),6),1,12,pencolor-192-192-192)

// Tick Marks
$drawrect($add($get(bitratebar.offsetx),$muldiv(11.11,$get(bitratebar.width),100)),$get(bitratebar.offsety),1,6,pencolor-192-192-192)
$drawrect($add($get(bitratebar.offsetx),$muldiv(22.22,$get(bitratebar.width),100)),$get(bitratebar.offsety),1,6,pencolor-192-192-192)
$drawrect($add($get(bitratebar.offsetx),$muldiv(33.33,$get(bitratebar.width),100)),$get(bitratebar.offsety),1,6,pencolor-192-192-192)
$drawrect($add($get(bitratebar.offsetx),$muldiv(44.44,$get(bitratebar.width),100)),$get(bitratebar.offsety),1,6,pencolor-192-192-192)
$drawrect($add($get(bitratebar.offsetx),$muldiv(55.55,$get(bitratebar.width),100)),$get(bitratebar.offsety),1,6,pencolor-192-192-192)
$drawrect($add($get(bitratebar.offsetx),$muldiv(77.77,$get(bitratebar.width),100)),$get(bitratebar.offsety),1,6,pencolor-192-192-192)

// Labels
$font(Mini-7,6,,187-19-0)
$alignabs($sub($get(bitratebar.offsetx),4),$get(bitratebar.text),%_width%,%_height%,,)32
$alignabs($sub($add($get(bitratebar.width),$get(bitratebar.offsetx)),8),$get(bitratebar.text),%_width%,%_height%,,)320
$alignabs($add($get(bitratebar.offsetx),$muldiv(11.11,$get(bitratebar.width),100),-6),$get(bitratebar.text),%_width%,%_height%,,)64
$alignabs($add($get(bitratebar.offsetx),$muldiv(22.22,$get(bitratebar.width),100),-6),$get(bitratebar.text),%_width%,%_height%,,)96
$alignabs($add($get(bitratebar.offsetx),$muldiv(33.33,$get(bitratebar.width),100),-6),$get(bitratebar.text),%_width%,%_height%,,)128
$alignabs($add($get(bitratebar.offsetx),$muldiv(44.44,$get(bitratebar.width),100),-6),$get(bitratebar.text),%_width%,%_height%,,)160
$alignabs($add($get(bitratebar.offsetx),$muldiv(55.55,$get(bitratebar.width),100),-6),$get(bitratebar.text),%_width%,%_height%,,)192
$alignabs($add($get(bitratebar.offsetx),$muldiv(77.77,$get(bitratebar.width),100),-6),$get(bitratebar.text),%_width%,%_height%,,)256

// Bar
$if(%isplaying%,
$drawrect($add($get(bitratebar.offsetx),1),$sub($get(bitratebar.offsety),6),$sub($get(bitratebar.width),1),6,brushcolor-$ifgreater(%bitrate%,320,$get(color.picker),$ifgreater(%bitrate%,32,50-0-0,128-128-128)) pencolor-null)
$ifgreater(%bitrate%,32,$ifgreater(%bitrate%,320,,
$drawrect($add($get(bitratebar.offsetx),1),$sub($get(bitratebar.offsety),6),$sub($muldiv($muldiv(100,$sub(%bitrate%,32),288),$get(bitratebar.width),100),1),6,brushcolor-200-0-0 pencolor-null)
),)
,)


//////// Progress Bar (DO NOT UNCOMMENT OR REMOVE PERSECOND)
// PerSecond
$if(%isplaying%,
// progess bar
$puts(progress,$muldiv(%playback_time_seconds%,$sub(%_width%,44),%length_seconds%))
$drawrect(20,$sub(%_height%,56),$sub(%_width%,40),8,brushcolor-null pencolor-128-0-0),)
$ifgreater($get(progress),0,$padding(19,$sub(%_height%,56))$drawrect(3,2,$get(progress),4,brushcolor-128-0-0 pencolor-nulll)

// times above progress bar
$font(Tahoma,6,boldshadow,192-192-192)
$alignabs(0,$sub(%_height%,68),$sub(%_width%,15),10,right,)
-%playback_time_remaining%
$font(Tahoma,6,boldshadow,192-192-192)
$alignabs(15,$sub(%_height%,68),$sub(%_width%,0),10,left,)
%playback_time%
,)

//Vis Box
$panel(Visbox,WMP Visualizations,10,185,$sub(%_width%,20),205,)