Loadbuf » History » Version 5
Per Amundsen, 08/18/2014 10:03 AM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | */loadbuf [lines] [-acNegilmnoprst<topic>] <window | dialog id> <filename>* |
||
4 | |||
5 | Loads the specified number of lines from the end of the file of filename into the specified window. |
||
6 | |||
7 | 2 | Per Amundsen | -a - Loads the text into the active window. |
8 | -cN - Specifies the default color (N) for the line being read. |
||
9 | -e - Evaluates variables and identifiers in the line being read. |
||
10 | -g - TODO |
||
11 | -i - TODO |
||
12 | -l - Reads the lines into side-listbox in a custom window. |
||
13 | 3 | Per Amundsen | -m - Indicates that the logging text is already timestamped. |
14 | -n - Logs the loaded text to a log file, if logging is enabled for that window |
||
15 | 2 | Per Amundsen | -o - Indicates that you have specified the [dialog id] parameters instead of a window name in order to load lines into a custom dialog control. |
16 | -p - TODO |
||
17 | -r - Clears the contents of the output window before adding read lines. |
||
18 | -s - Reads the lines into the associated status window. |
||
19 | 4 | Per Amundsen | -t<topic> - Loads the text under the [topic] section in an INI or plain text file. |
20 | 1 | Per Amundsen | |
21 | *Parameters* |
||
22 | |||
23 | [lines] - If specified, the number of lines to add from the end the file, otherwise the whole content of the file is added. |
||
24 | <window | dialog id> - Window or dialog id to load into. |
||
25 | <filename> - File to load. |
||
26 | 4 | Per Amundsen | |
27 | *Example* |
||
28 | |||
29 | <pre> |
||
30 | ;Open a custom window. |
||
31 | /window @test |
||
32 | |||
33 | 5 | Per Amundsen | ;Read 10 lines from the AdiIRC config file into the custom window |
34 | 1 | Per Amundsen | //loadbuf 10 -r $qt($adiircini) @test |
35 | 5 | Per Amundsen | |
36 | ;Only loads the [Message] AdiIRC section of the config file. |
||
37 | //loadbuf -rTMessage $qt($adiircini) @test |
||
38 | 4 | Per Amundsen | </pre> |