//the maximum amount of characters the artist + half the title can reach (used to stop overlapping, needs some fiddling) $puts(maxtitleartistlen,35) //the maximum amount of characters the album + half the title can reach (used to stop overlapping, needs some fiddling) $puts(maxtitlealbumlen,33) $puts(artist,[%artist%]) $puts(title,[%title%]) $puts(album,[%album%]) $puts(titlealbumlen,$add($div($len($get(title)),2),$len($get(album)))) $puts(titleartistlen,$add($div($len($get(title)),2),$len($get(artist)))) 887a62[$get(artist)] $ifgreater( //if this string $get(titlealbumlen), //is longer than $get(maxtitleartistlen), //then // set the titlealign variable to align the text to the right $puts(titlealign,$char(1)R) // and clear the 'album' variable, $puts(album,), //otherwise $ifgreater( // if this string $get(titleartistlen), // is longer than $get(maxtitlealbumlen), // set the titlealign variable to align the text to the right $puts(titlealign,$char(1)R) // and clear the 'album' variable, $puts(album,), // otherwise set the titlealign variable to align the text to the center $puts(titlealign,$char(1)C))) //create a new line $char(10) //echo the alignment variable, followed by the title $get(titlealign) $get(title) //create a new line $char(10) //echo the alignment variable, a colour, and the album $char(1)Rb4b7af$get(album)