From WikiChip
Difference between revisions of "mirc/commands/loadbuf"
(Created page with "The '''/loadbuf command''' loads the specified number of lines from the end of the file of filename into the specified window. == Synopsis == /loadbuf [lines] [-apirsglecNno...") |
m (Add note about -g switch and add version number.) |
||
(21 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{mirc title|/loadbuf Command}} | ||
The '''/loadbuf command''' loads the specified number of lines from the end of the file of filename into the specified window. | The '''/loadbuf command''' loads the specified number of lines from the end of the file of filename into the specified window. | ||
== Synopsis == | == Synopsis == | ||
− | /loadbuf [lines] [- | + | /loadbuf [lines] [-apiNrsglecNnomt<topic>] <window | dialog id> <filename> |
== Switches == | == Switches == | ||
* '''-a''' - adds the lines into the active window | * '''-a''' - adds the lines into the active window | ||
* '''-p''' - forces lines of text to wrap when added to the window | * '''-p''' - forces lines of text to wrap when added to the window | ||
− | * '''- | + | * '''-iN''' - makes sure that lines are indented if they wrap, if N is specified, indents by N characters |
* '''-r''' - clears the contents of the output window before adding lines to it | * '''-r''' - clears the contents of the output window before adding lines to it | ||
* '''-s''' - adds the lines into the status window | * '''-s''' - adds the lines into the status window | ||
+ | * '''-g''' - adds the lines into the finger window (feature removed) | ||
* '''-l''' - adds the lines into the side-listbox in a custom window | * '''-l''' - adds the lines into the side-listbox in a custom window | ||
* '''-e''' - evaluates variables and identifiers in the line being read | * '''-e''' - evaluates variables and identifiers in the line being read | ||
+ | * '''-h''' - hides a line if -e is specified and it doesn't evaluate anything in the line being read | ||
* '''-cN''' - specifies the default color for lines, N is an index color | * '''-cN''' - specifies the default color for lines, N is an index color | ||
* '''-n''' - if logging is enabled for that window, logs the loaded lines | * '''-n''' - if logging is enabled for that window, logs the loaded lines | ||
− | * '''-m''' - used with -n, indicates that the text is already timestamped | + | * '''-m''' - used with -n, indicates that the text shouldn't be timestamped in the log file. (the buffer text is already timestamped or you might not want it to be timestamped) |
* '''-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 | * '''-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 | ||
* '''-t''' - loads the lines under the [topic] section in a file | * '''-t''' - loads the lines under the [topic] section in a file | ||
== Parameters == | == Parameters == | ||
− | * '''[lines]''' - | + | * '''[lines]''' - If specified, the number of lines to add from the end the file, otherwise the whole content of the file is added. |
− | * '''<window | dialog id>''' - | + | * '''<window | dialog id>''' - The window's name or the dialog's name and an id to adds the lines to. |
− | * '''<filename>''' - | + | * '''<filename>''' - The filename you want to add lines from. |
== Example == | == Example == | ||
− | + | <code>//window @test | loadbuf $lines($mircini) @test $qt($mircini)</code> | |
== Compatibility == | == Compatibility == | ||
− | + | {{mIRC compatibility|5.0}} | |
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
* [[List of commands - mIRC|List of commands]] | * [[List of commands - mIRC|List of commands]] | ||
* [[List of identifiers - mIRC|List of identifiers]] | * [[List of identifiers - mIRC|List of identifiers]] | ||
− | * | + | * {{mIRC|/filter}} |
− | * | + | * {{mIRC|/savebuf}} |
+ | {{mIRC command list}} | ||
− | [[Category:mIRC commands]] | + | [[Category:mIRC commands|loadbuf command - mIRC]] |
Latest revision as of 16:23, 16 August 2021
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The /loadbuf command loads the specified number of lines from the end of the file of filename into the specified window.
Synopsis[edit]
/loadbuf [lines] [-apiNrsglecNnomt<topic>] <window | dialog id> <filename>
Switches[edit]
- -a - adds the lines into the active window
- -p - forces lines of text to wrap when added to the window
- -iN - makes sure that lines are indented if they wrap, if N is specified, indents by N characters
- -r - clears the contents of the output window before adding lines to it
- -s - adds the lines into the status window
- -g - adds the lines into the finger window (feature removed)
- -l - adds the lines into the side-listbox in a custom window
- -e - evaluates variables and identifiers in the line being read
- -h - hides a line if -e is specified and it doesn't evaluate anything in the line being read
- -cN - specifies the default color for lines, N is an index color
- -n - if logging is enabled for that window, logs the loaded lines
- -m - used with -n, indicates that the text shouldn't be timestamped in the log file. (the buffer text is already timestamped or you might not want it to be timestamped)
- -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
- -t - loads the lines under the [topic] section in a file
Parameters[edit]
- [lines] - If specified, the number of lines to add from the end the file, otherwise the whole content of the file is added.
- <window | dialog id> - The window's name or the dialog's name and an id to adds the lines to.
- <filename> - The filename you want to add lines from.
Example[edit]
//window @test | loadbuf $lines($mircini) @test $qt($mircini)
Compatibility[edit]
Added: mIRC v5.0
Added on: 02 Apr 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See also[edit]
mIRC commands list