$paused

By hixxy on Oct 18, 2005

This snippet will let you check if a song is paused. It will work in versions older than the version that introduced $insong.pause.

There are comments and examples in the code on how to use it.

/*

$paused

Syntax;

$paused

Explanation;

This identifier will return $true if a song is paused, otherwise $false.
This identifier works in versions older than the one that introduced $insong.pause.

Example;

//splay $iif($paused,resume,pause)

Contact;

Email: tidy_trax@mirc.net
IRC: irc.undernet.org @#mirc.net

*/

alias paused {
  if (!$insong) { return $false }
  var %pos = $insong.pos, %i = 1
  while (%i <= 50) { inc %i }
  if (%pos == $insong.pos) { return $true }
  return $false
}

Comments

Sign in to comment.
hixxy   -  Oct 20, 2005

Eh?

 Respond  
KuTsuM   -  Oct 20, 2005

wasn\'t the pause prop introduced at the same time of the alias? I maybe wrong, but nice job ;p

 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.