Actions
Refreshsong » History » Revision 1
Revision 1/2
| Next »
Per Amundsen, 04/30/2018 05:40 PM
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 show the current song. !np $1- } }
Updated by Per Amundsen over 6 years ago · 1 revisions