Project

General

Profile

Added in 3.1

/refreshsong

Forces AdiIRC to refresh the song title for the current media player.

Example

; Override the '/np' command.
alias np {
  if ($1 == itunes) {
    ; if the first parameter is 'itunes', change the media player to itunes.
    ; 4 means the 4th item in Options -> Media Player, starting from index 0.
    .setoption MediaPlayer MediaPlayer 4

    ; Tell AdiIRC to immediately refresh the song title.
    refreshsong

    ; Call the internal /np command which will now print the refreshed song.
    !np $2-
  }
  else if ($1 == foobar) {
    ; if the first parameter is 'foobar', change the media player to foobar2000.
    .setoption MediaPlayer MediaPlayer 8

    ; Tell AdiIRC to immediately refresh the song title.
    refreshsong

    ; Call the internal /np command which will now print the refreshed song.
    !np $2-
  }
  else {
    ; No parameter given just call the built-in /np command to print the current song.
    !np $1-
  }
}

Updated by Per Amundsen 4 months ago · 2 revisions

Also available in: PDF HTML TXT