From WikiChip
Editing mirc/commands/aline

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.

Latest revision Your text
Line 1: Line 1:
{{mirc title|/aline Command}}
+
The '''aline command''' is used to add a single line of text to a custom window or a list. This command is limited to custom @windows, If you need a more general command that is able to print to both custom windows, channel, and query consider using the /echo command instead.
The '''aline command''' is used to add a single line of text to a custom window. This command is limited to custom @windows, If you need a more general command that is able to print to both custom windows, channel, and query consider using the /echo command instead.
 
 
 
'''Note:''' If the main window is sorted (text or listbox and /window -s has been used), lines added with /echo to that window won't be sorted, only lines added with /aline will.
 
  
 
== Synopsis ==
 
== Synopsis ==
  /aline -scNahpinlt [c] <@name> <text>
+
  /aline -sahpinl [c] <@name> <text>
  
 
== Switches ==
 
== Switches ==
* '''-s''' - Clears the old selection in a listbox and selects the newly added item  
+
* '''-s''' - Clears the old selection in a list and selects the newly added item  
* '''-a''' - Selects the newly added item while keeping the old selection in a listbox
+
* '''-a''' - Selects the newly added item while keeping the old selection in a list
* '''-h''' - Highlights the window's node in the treebar/switchbar if the window is minimized
+
* '''-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)
+
* '''-p''' - Forces the line to be wrapped if it's too long to fit in on one line (does not apply to lists)
* '''-i[N]''' - Indent the newly added line (does not apply to listboxes) by N spaces, default to 2 spaces
+
* '''-i''' - Indent the newly added line
* '''-n''' - Prevent the line from being added if it already exists
+
* '''-n''' - Prevent the line from being added if already exists
 
* '''-l''' - Specify the action to take place on the side-listbox
 
* '''-l''' - Specify the action to take place on the side-listbox
* '''-t''' - forces a re-wrap of all lines in a window that have not yet been wrapped to the current window size.
 
* '''-cN''' - Same as specifying the [c] parameter for the color of the line but via a switch
 
  
 
== Parameters ==
 
== Parameters ==
  
* '''[c]''' - An optional color number for the line.
+
* '''[c]''' - An optional color number for the line
* '''<@name>''' - The name of the window.
+
* '''<@name>''' - The name of the window
* '''<text>''' - The text to be added.
+
* '''<text>''' - The text to be added
  
 
== Example ==
 
== Example ==
 
<syntaxhighlight lang="mIRC">Alias Example {
 
<syntaxhighlight lang="mIRC">Alias Example {
   ;open a desktop custom window (main window is a listbox, no side-listbox and with an editbox)
+
   ;open a desktop custom window (listbox and with an editbox)
 
   Window -lde @Foo
 
   Window -lde @Foo
  
Line 37: Line 32:
  
 
== Compatibility ==
 
== Compatibility ==
{{mIRC compatibility|5.0}}
+
Added: mIRC v5.0
 +
 
 +
Added On: 02/04/97
 +
 
 +
<small>Note: Individual switches were not taken into consideration.</small>
  
 
== 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|$line}}
+
* [[$line identifier - mIRC|$line]]
* {{mIRC|$fline}}
+
* [[$fline identifier - mIRC|$fline]]
* {{mIRC|$sline}}
+
* [[$slinex identifier - mIRC|$slinex]]
* {{mIRC|/cline}}
+
* [[/cline command - mIRC|/cline]]
* {{mIRC|/dline}}
+
* [[/dline command - mIRC|/dline]]
* {{mIRC|/echo}}
+
* [[/echo command - mIRC|/echo]]
* {{mIRC|/iline}}
+
* [[/iline command - mIRC|/iline]]
* {{mIRC|/rline}}
+
* [[/rline command - mIRC|/rline]]
* {{mIRC|/sline}}
+
* [[/sline command - mIRC|/sline]]
* {{mIRC|/window}}
+
* [[/window command - mIRC|/window]]
{{mIRC command list}}
 
  
[[Category:mIRC commands|aline command - mIRC]]
+
[[Category:mIRC commands]]

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)