Project

General

Profile

$line » History » Version 11

Per Amundsen, 10/18/2022 11:33 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3 9 Per Amundsen
*$line(@window|#channel|nick|Status Window,N,[T])*
4 1 Per Amundsen
5
Returns the Nth line of text in the specified window.
6
7 9 Per Amundsen
Works on any window.
8
9 1 Per Amundsen
*Parameters*
10
11 9 Per Amundsen
@window|#channel|nick|Status Window - The window to retrieve text from.
12 1 Per Amundsen
N - If N = 0 number of lines, otherwise the Nth line.
13
[T] - If T = 0 use display area (default) if T = 1, use side-listbox. (optional)
14
15 2 Per Amundsen
*Properties*
16
17 4 Per Amundsen
.state - Returns 1 if the line is selected in a side-listbox, otherwise 0.
18 2 Per Amundsen
.color - Returns the line or nick color.
19 10 Per Amundsen
.rgbcolor - For side-listbox returns the line color in [[$rgb]] format, otherwise returns the rgb line color if any *(AdiIRC only)*
20 11 Per Amundsen
.nickcolumn - Gets the line with the nickcolumn character intact. *(AdiIRC Only)*
21 2 Per Amundsen
22 1 Per Amundsen
*Example*
23
24
<pre>
25
; Create a custom window.
26
/window @Example
27
28
; Add a few lines to the window.
29
/aline @Example Test1
30
/aline @Example Test2
31
/aline @Example Test3
32
33
; Print number of lines in the window.
34
//echo -ag $line(@Example, 0)
35
36
; Print the second line in the window.
37
//echo -ag $line(@Example, 2)
38
</pre>