From WikiChip
Difference between revisions of "mirc/commands/loadbuf"
< mirc‎ | commands

(Synopsis)
(Switches)
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{mirc title|/loadbuf Command}}{{mIRC menu}}
+
{{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.
  
Line 8: Line 8:
 
* '''-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
* '''-i''' - makes sure that lines are indented if they wrap
+
* '''-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
 
* '''-f''' - adds the lines into the finger window
 
* '''-f''' - adds the lines into the finger window
* '''-s''' - adds the lines into the  window
 
 
* '''-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
Line 18: Line 17:
 
* '''-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
Line 28: Line 27:
  
 
== Example ==
 
== Example ==
 
+
<code>//window @test | loadbuf $lines($mircini) @test $qt($mircini)</code>
  
 
== Compatibility ==
 
== Compatibility ==

Revision as of 10:43, 1 October 2018

The /loadbuf command loads the specified number of lines from the end of the file of filename into the specified window.

Synopsis

/loadbuf [lines] [-apiNrsglecNnomt<topic>] <window | dialog id> <filename>

Switches

  • -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
  • -f - adds the lines into the finger window
  • -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

  • [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

//window @test | loadbuf $lines($mircini) @test $qt($mircini)

Compatibility

Added:

See also

v · d · e mIRC commands list

A /abook, /action, /add, /ajinvite, /alias, /aline, /ame, /amsg, /anick, /aop, /auser, /auto, /autojoin, /avoice, /away

B /background, /ban, /bcopy, /beep, /bindip, /bread, /break, /breplace, /bset, /btrunc, /bunset, /bwrite

C /channel, /clear, /clearall, /clearial, /cline, /clipboard, /close, /closechats, /closedccs, /closefserves, /closemsg, /cnick, /color, /colour, /comclose, /comlist, /commands, /comopen, /comreg, /continue, /copy, /creq, /ctcp, /ctcpreply, /ctcps

D /dcc, /dccserver, /dde, /ddeserver, /debug, /dec, /describe, /dialog, /did, /didtok, /disable, /disconnect, /dlevel, /dline, /dll, Template:mIRC/donotdisturb, /dns, /dqwindow, /drawcopy, /drawdot, /drawfill, /drawline, /drawpic, /drawrect, /drawreplace, /drawrot, /drawsave, /drawscroll, /drawsize /drawtext

E /ebeeps, /echo, /editbox, /else, /elseif, /emailaddr, /enable, /events, /exit

F /fclose, /filter, /findtext, /finger, /firewall, /flash, /flist, /flood, /flush, /flushini, /fnord, /font, /fopen, /fseek, /fsend, /fserve, /fullname, /fupdate, /fwrite

G /ghide, /gload, /gmove, /gopts, /goto, /gplay, /gpoint, /gqreq, /groups, /gshow, /gsize, /gstop, /gtalk, /gunload, /guser

H /hadd, /halt, /haltdef, /hdec, /hdel, /help, /hfree, /hinc, /hload, /hmake, /hotlink, /hop, /hsave

I /ial, /ialclear, /ialmark, /identd, /if, /ignore, /iline, /inc, /iuser

J /join

L /leave, /linesep, /links, /list, /load, /loadbuf, /localinfo, /log, /logview

M /maxdepth, /mdi, /me, /menubar, /mkdir, /mnick, /mode, /msg

N /noop, /notice, /notify

O /onotice, /omsg

P /pareline, /part, /partall, /pdcc, /perform, /play, /playctrl, /pop, /protect, /proxy, /pvoice

Q /qme, /qmsg, /query, /queryrn, /quit, /quote

R /raw, /registration, /reload, /remini, /remote, /remove, /rename, /renwin, /reseterror, /resetidle, /return, /returnex, /rlevel, /rline, /rmdir, /run, /ruser

S /save, /savebuf, /saveini, /say, /scid, /scon, /server, /set, /setlayer, /showmirc, /signal, /sline, /sockaccept, /sockclose, /socklist, /socklisten, /sockmark, /sockopen, /sockpause, /sockread, /sockrename, /sockudp, /sockwrite, /sound, /speak, /splay, /sreq, /strip, /switchbar

T /timer, /timestamp, /tip, /tips, /titlebar, /tnick, /tokenize, /toolbar, /topic /tray, /treebar

U /ulist, /unload, /unset, /unsetall, /updatenl, /url, /username, /uwho

V /var, /vcadd, /vcmd, /vcrem, /vol

W

X /xyzzy