Project

General

Profile

Rline » History » Version 5

Per Amundsen, 02/09/2017 10:51 PM

1 1 Per Amundsen
_Added in 1.9.5_
2
3 5 Per Amundsen
*/rline [-ahslb] [c] <@name> <N> <text>* 
4 1 Per Amundsen
5 4 Per Amundsen
Replaces the Nth line in any window with a new line. 
6 1 Per Amundsen
7
*Switches*
8
9 2 Per Amundsen
-a - Selects the newly added item while keeping the old selection in a listbox.
10
-h - Highlights the window's node in the treebar is the window is not active.
11
-s - Clears the old selection in a listbox and selects the newly added item.
12 1 Per Amundsen
-l - Specify the action to take place on the side-listbox,
13 5 Per Amundsen
-b - Indicates the [c] color is in [[$rgb]] format. (AdiIRC only)
14 1 Per Amundsen
15
*Parameter*
16
17 2 Per Amundsen
[c] - An optional color number for the line 
18 4 Per Amundsen
<@name> - Name of the window.
19 1 Per Amundsen
<N> - The line to change.
20
<text> - Text to insert.
21
22
*Example*
23
24
<pre>
25
alias example {
26 3 Per Amundsen
  ; Open a custom window.
27
  /window -de @Example
28 1 Per Amundsen
 
29 3 Per Amundsen
  ; Add a line with the text 'Line A'.
30
  /aline @Example Line A
31 1 Per Amundsen
 
32 3 Per Amundsen
  ; Add a line with the text 'Line B'.
33
  /aline @Example Line B
34 1 Per Amundsen
35 3 Per Amundsen
  ; Add a line with the text 'Line C'.
36
  /aline @Example Line C
37 1 Per Amundsen
38 3 Per Amundsen
  ; Change the text of the second line to 'Line D'.
39
  /dline @Example 2 Line D
40 1 Per Amundsen
}
41
42
</pre>