Loadbuf » History » Version 9
Per Amundsen, 02/16/2023 12:58 PM
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 | 8 | Per Amundsen | -g - *TODO* |
11 | -i - *TODO* |
||
12 | 2 | Per Amundsen | -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 | 8 | Per Amundsen | -p - *TODO* |
17 | 2 | Per Amundsen | -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 | 9 | Per Amundsen | table(ktable). |
24 | |*Parameter*|*Description*| |
||
25 | | [lines] | If specified, the number of lines to add from the end the file, otherwise the whole content of the file is added. | |
||
26 | | <window <notextile>|</notextile> dialog id> | Window or dialog id to load into. | |
||
27 | | <filename> | File to load. | |
||
28 | 4 | Per Amundsen | |
29 | *Example* |
||
30 | |||
31 | <pre> |
||
32 | 6 | Per Amundsen | ; Open a custom window. |
33 | /window @Example |
||
34 | 4 | Per Amundsen | |
35 | 6 | Per Amundsen | ; Read 10 lines from the AdiIRC config file into the custom window |
36 | 7 | Mr. BS | //loadbuf 10 -r @Example $qt($adiircini) |
37 | 5 | Per Amundsen | |
38 | 7 | Mr. BS | ; Only loads the [Messages] AdiIRC section of the config file. |
39 | //loadbuf -rTMessages @Example $qt($adiircini) |
||
40 | 4 | Per Amundsen | </pre> |