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: problem with replacing code (Read 2495 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

problem with replacing code

hi, i have a problem, when i pause a song i want it to replace
Code: [Select]
$align(right,center) [%playback_time%  /]  %length%
with
Code: [Select]
$align(right,center)$if(%ispaused%, '('  P  A  U  S  E  D  ')'),$font(calibri,8,bold glow-129-138-150 glowblur-10,255-255-255),$font(calibri,8,bold,120-120-120))






here is all of the code:

Code: [Select]
$if(%_isplaying%,$drawrect(0,0,0,0,brushcolor-0-0-0 pencolor-255-255-255),
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-000-000-000 pencolor-255-255-255),
$imageabs(3,0,'images\bg1.png',)

$ifequal($mod(%tracknumber%,2),0,
         $drawrect(0,0,0,0,brushcolor-000-000-000 pencolor-000-000-000)
      ,
         $drawrect(0,0,0,0,brushcolor-000-000-000 pencolor-null)
      )
)
)
$padding(2,0)

$if(%_isplaying%,$font(calibri,8,bold glow-129-138-150 glowblur-10,255-255-255),$font(calibri,8,bold,164-171-179))
$alignabs(4,0,%_width%,21,left,top)↘

$if(%_isplaying%,$font(calibri,8,bold glow-129-138-150 glowblur-10,255-255-255),$font(calibri,8,bold,180-180-180))

       %tracknumber%    $if(%disc%, '(' Cd %disc% ')')    

$if(%_isplaying%,$font(calibri,8,bold glow-129-138-150 glowblur-10,255-255-255),$font(calibri,8,bold,129-138-150))

$if($meta_test(album artist),%artist%' - ')

$if(%_isplaying%,$font(calibri,8,bold glow-129-138-150 glowblur-10,255-255-255),$font(calibri,8,bold,120-120-120))
%title%

$if(%_isplaying%,$font(calibri,8,bold glow-129-138-150 glowblur-10,255-255-255),$font(calibri,8,bold,180-180-180))

$align(right,center) [%playback_time%  /]  %length%


//$drawrect(0,0,1,0,brushcolor-161-170-179 pencolor-null)
//$drawrect(1,0,3,0,brushcolor-222-225-228 pencolor-null)




i use this code for single_columns_ui

problem with replacing code

Reply #1
Code: [Select]
$align(right,center)$if(%ispaused%,$font(calibri,8,bold glow-129-138-150 glowblur-10,255-255-255) '('  P  A  U  S  E  D  ')',$font(calibri,8,bold,120-120-120))

Perhaps? (you had an extra '),'), I presume you wanted:

if paused then
-'paused' in font-bold-glow
else
-font-bold
endif

Otherwise can you explain what you wanted.

problem with replacing code

Reply #2
take a look @ This


i meant that when i pause a song i want to display [ P A U S E D ] instead of
Code: [Select]
$align(right,center) [%playback_time%  /]  %length%




do you know what i mean ?





if so would appriciate if you would tell me where in this code i should place it:

Code: [Select]
$if(%_isplaying%,$drawrect(0,0,0,0,brushcolor-0-0-0 pencolor-255-255-255),
$if(%_selected%,$drawrect(0,0,0,0,brushcolor-000-000-000 pencolor-255-255-255),
$imageabs(3,0,'images\bg1.png',)

$ifequal($mod(%tracknumber%,2),0,
         $drawrect(0,0,0,0,brushcolor-000-000-000 pencolor-000-000-000)
      ,
         $drawrect(0,0,0,0,brushcolor-000-000-000 pencolor-null)
      )
)
)
$padding(2,0)

$if(%_isplaying%,$font(calibri,8,bold glow-129-138-150 glowblur-10,255-255-255),$font(calibri,8,bold,164-171-179))
$alignabs(4,0,%_width%,21,left,top)↘

$if(%_isplaying%,$font(calibri,8,bold glow-129-138-150 glowblur-10,255-255-255),$font(calibri,8,bold,180-180-180))

       %tracknumber%    $if(%disc%, '(' Cd %disc% ')')    

$if(%_isplaying%,$font(calibri,8,bold glow-129-138-150 glowblur-10,255-255-255),$font(calibri,8,bold,129-138-150))

$if($meta_test(album artist),%artist%' - ')

$if(%_isplaying%,$font(calibri,8,bold glow-129-138-150 glowblur-10,255-255-255),$font(calibri,8,bold,120-120-120))
%title%

$if(%_isplaying%,$font(calibri,8,bold glow-129-138-150 glowblur-10,255-255-255),$font(calibri,8,bold,180-180-180))

$align(right,center) [%playback_time%  /]  %length%


//$drawrect(0,0,1,0,brushcolor-161-170-179 pencolor-null)
//$drawrect(1,0,3,0,brushcolor-222-225-228 pencolor-null)

problem with replacing code

Reply #3
Try this one

Code: [Select]
$align(right,middle)$if(%ispaused%,$font(calibri,8,bold glow-129-138-150 glowblur-10,255-255-255) '('  P  A  U  S  E  D  ')',$font(calibri,8,bold,120-120-120))


Put it where you want it, doesn't matter. You assign the location with $align. you can also use $alignrel and $alignabs.
Read more here, foo_uie_trackinfo_mod Wiki
Windows 10 Pro x64 // foobar2000 1.3.10

 

problem with replacing code

Reply #4
Andreasvb ..... you're the best 


i was about to give up