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

(Created page with "The '''iline command''' is used to insert a single line of text to a custom window. == Synopsis == /iline -sahpinl [c] <@name> <N> <text> == Switches == * '''-s''' - Clears...")
 
(Example)
Line 31: Line 31:
 
   iline -s 3 @Foo 1 Line B
 
   iline -s 3 @Foo 1 Line B
 
}</syntaxhighlight>
 
}</syntaxhighlight>
 +
  
 
== Compatibility == 1
 
== Compatibility == 1

Revision as of 20:38, 12 March 2014

The iline command is used to insert a single line of text to a custom window.

Synopsis

/iline -sahpinl [c] <@name> <N> <text>

Switches

  • -s - Clears the old selection in a listbox and selects the newly added item
  • -a - Selects the newly added item while keeping the old selection in a listbox
  • -h - Highlights the window's node in the treebar is the window is minimized
  • -p - Forces the line to be wrapped if it's too long to fit in on one line (does not apply to listboxes)
  • -i - Indent the newly added line (does not apply to listboxes)
  • -n - Prevent the line from being added if it already exists
  • -l - Specify the action to take place on the side-listbox

Parameters

  • [c] - An optional color number for the line
  • <@name> - The name of the window
  • <N> - The number of the line you want to insert the text into
  • <text> - The text to be inserted

Example

Alias Example {
  ;open a desktop custom window (main window is a listbox, no side-listbox and with an editbox)
  Window -lde @Foo
 
  ;Add a line, line colored in yellow (8)
  Aline 8 @Foo Line A
 
  ;insert at line 1, color Dark Green (3), selected, clear old selection
  iline -s 3 @Foo 1 Line B
}


== Compatibility == 1 Added: mIRC v5.0

Added On: 02/04/97

Note: Individual switches were not taken into consideration.

See also