Akishoot commented on a Page, Mp3 player  -  Sep 30, 2007

I fixed it to be:

on *:dialog:mp3player:sclick:3: {
  pause
}
alias pause {
  .splay pause
  .did -ra mp3player 6 - Paused - $sound($read($($+(\",$scriptdir,mp3playlist.play,\")),$did(mp3player,30).sel)).title
  .set %mp3.paused $did(mp3player,30).sel
  .timermp3time -p
}

and...:

on *:dialog:mp3player:sclick:1: {
  if ( %mp3.paused == $did(mp3player,30).sel ) {
    .splay resume
    .timermp3time -r
    .did -ar mp3player 6 - Playing - $sound($read($($+(\",$scriptdir,mp3playlist.play,\")),$did(mp3player,30).sel)).title
  }
  if ( %mp3.paused != $did(mp3player,30).sel ) {
    .timermp3time off
    .unset %mp3.currenttime
    mp3play
  }
}

Doing this, when it\'s paused and you click \'Play\', it will actually resume and not restart the song...

 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.