Project

General

Profile

$playerhandle » History » Version 3

Per Amundsen, 04/29/2018 02:45 AM

1 1 Per Amundsen
_Added in 3.1_
2
3
*$playerhandle*
4
5
Returns the window handle to the current running media player.
6 2 Per Amundsen
7
*Example*
8
9
<pre>
10 3 Per Amundsen
; Override the default /np alias to customize the error meesages.
11 2 Per Amundsen
alias np {
12
  if (!$playerhandle) {
13
    echo $color(info) -agt Media Player is not running.
14
    return
15
  }
16
17
  if (!$song) {
18
    echo $color(info) -agt Media Player is not playing.
19
    return
20
  }
21
22 3 Per Amundsen
  ; All good, forward to the internal /np command.
23 2 Per Amundsen
  !np $1-
24
}
25
</pre>