Project

General

Profile

Added in 3.1

$playerhandle

Returns the window handle to the current running media player.

Example

; Override the default /np alias to customize the error meesages.
alias np {
  if (!$playerhandle) {
    echo $color(info) -agt Media Player is not running.
    return
  }

  if (!$song) {
    echo $color(info) -agt Media Player is not playing.
    return
  }

  ; All good, forward to the internal /np command.
  !np $1-
}

Updated by Per Amundsen about 2 months ago · 3 revisions

Also available in: PDF HTML TXT