echo -s $str($+($chr(32), ), $calc(($window(Status Window).w - $width([color:red]Your text, $window(Status Window).font, $window(Status Window).fontsize)) / 2 / $width($chr(32), $window(Status Window).font, $window(Status Window).fontsize))) $+ Your text[/color]
That would centre Your text on the active window based on it's current width, however there's no way to make it stay centred if the window is resized unless it's a custom window.
Last edited by starbucks_mafia; 28/06/04 08:31 PM.