Project

General

Profile

Loadbuf » History » Version 10

Per Amundsen, 02/16/2023 12:59 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 10 Per Amundsen
*Switches*
8
9
table(ktable).
10
|*Switch*|*Description*|
11
| -a | Loads the text into the active window. |
12
| -cN | Specifies the default color (N) for the line being read. |
13
| -e | Evaluates variables and identifiers in the line being read. |
14
| -g | *TODO* |
15
| -i | *TODO* |
16
| -l | Reads the lines into side-listbox in a custom window. |
17
| -m | Indicates that the logging text is already timestamped. |
18
| -n | Logs the loaded text to a log file, if logging is enabled for that window |
19
| -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. |
20
| -p | *TODO* |
21
| -r | Clears the contents of the output window before adding read lines. |
22
| -s | Reads the lines into the associated status window. |
23
| -t<topic> | Loads the text under the [topic] section in an INI or plain text file. |
24 1 Per Amundsen
25
*Parameters*
26
27 9 Per Amundsen
table(ktable).
28
|*Parameter*|*Description*|
29
| [lines] | If specified, the number of lines to add from the end the file, otherwise the whole content of the file is added. |
30
| &lt;window <notextile>|</notextile> dialog id&gt; | Window or dialog id to load into. |
31
| &lt;filename&gt; | File to load. |
32 4 Per Amundsen
33
*Example*
34
35
<pre>
36 6 Per Amundsen
; Open a custom window.
37
/window @Example
38 4 Per Amundsen
39 6 Per Amundsen
; Read 10 lines from the AdiIRC config file into the custom window
40 7 Mr. BS
//loadbuf 10 -r @Example $qt($adiircini)
41 5 Per Amundsen
42 7 Mr. BS
; Only loads the [Messages] AdiIRC section of the config file.
43
//loadbuf -rTMessages @Example $qt($adiircini)
44 4 Per Amundsen
</pre>