Project

General

Profile

$script » History » Version 5

Per Amundsen, 12/13/2019 06:31 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$script*
4
5
Returns the filename for the current running script.
6
7
-----------------------------------------------------------------------------
8
9
*$script(N|filename)*
10
11
Returns the filename for the Nth loaded script file. If you specify a filename, it returns [[$null]] if the file is not loaded.
12
13
*Parameters*
14
15
N|filename - The filename to check, if N = 0 number of filenames, otherwise the Nth filename.
16
17 4 Per Amundsen
*Properties*
18
19 5 Per Amundsen
.ignore - Returns [[$true]] if the loaded script is ignored in the Script Editor, otherwise [[$false]]. *(AdiIRC only)*
20 4 Per Amundsen
21 1 Per Amundsen
*Example*
22
23
<pre>
24
; Print number of filename.
25 3 Mr. BS
//echo -ag $script(0)
26 1 Per Amundsen
27
; Print the first filename.
28 3 Mr. BS
//echo -ag $script(1)
29 2 Per Amundsen
30
; Check if 'example.ini' is loaded.
31 3 Mr. BS
//echo -ag $script(example.ini)
32 1 Per Amundsen
</pre>