$line » History » Version 9
Per Amundsen, 12/25/2018 07:25 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 | 8 | Per Amundsen | .rgbcolor - For side-listbox returns the line color in [[$rgb]] format, otherwise returns the rgb line color if any (AdiIRC only) |
| 20 | 2 | Per Amundsen | |
| 21 | 1 | Per Amundsen | *Example* |
| 22 | |||
| 23 | <pre> |
||
| 24 | ; Create a custom window. |
||
| 25 | /window @Example |
||
| 26 | |||
| 27 | ; Add a few lines to the window. |
||
| 28 | /aline @Example Test1 |
||
| 29 | /aline @Example Test2 |
||
| 30 | /aline @Example Test3 |
||
| 31 | |||
| 32 | ; Print number of lines in the window. |
||
| 33 | //echo -ag $line(@Example, 0) |
||
| 34 | |||
| 35 | ; Print the second line in the window. |
||
| 36 | //echo -ag $line(@Example, 2) |
||
| 37 | </pre> |