Animated titlebar text

By [Plornt] on Apr 29, 2011

Rawr, does what it says on the tin... (short lil snippt)

Moves the text you specify accross the title bar in <---- direction.

/animateTitle TEXT GOES HERE, THE LONGER, THE BETTER THE EFFECT, CAPITALS PWN

alias animateTitle {
  if ($1-) {
    tokenize 32 $iif($1 == -c,$2-,$1- $+ $chr(27))
    var %newtext $replace($right($1-,$calc($len($1-) - 1)) $+ $left($right($1-,$len($1-)),1),$chr(32),$chr(28))
    titlebar $replace(%newtext,$chr(28),$chr(32),$chr(27),$+($chr(32),<,$chr(32)))
    .timer.title -m 1 100 animateTitle -c %newtext
  }
  else echo -a Error: Unspecified animation text.
}

Comments

Sign in to comment.
Scakk   -  Apr 29, 2011

Some people have stuff in their titlbar to start with so perhaps have it use $titlebar if there is no $1 as so long as $titlebar does not equal $null

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.