From WikiChip
Editing mirc/commands/window

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|/window Command}}
 
{{mirc title|/window Command}}
The '''/window command''' can be used to create [[Custom Windows - mIRC|custom windows]] and [[Picture Windows - mIRC|picture windows]] (using the -p switch), or to manipulate an existing custom or channel window.
+
The '''/window command''' can be used to create [[Custom Windows - mIRC|custom window]] as well as [[Picture Windows - mIRC|picture windows]] (using the -p switch). You can also use this command to manipulate an already existing window as well as change things in a channel window.
 
 
  
 
== Synopsis ==
 
== Synopsis ==
  /window [-abBcCdDe[N]fg[N]hHij[N]k[N]l[N]mMn[N]oprRsSuvw[N]xyz] [-tN,..,N] [+bdeflLnstx] <@name> [x y [w h]] [/command] [popup.txt/@popup] [font [size]] [iconfile [N]]
+
  /window [-abBcCdDe[N]fg[N]hHij[N]k[N]l[N]mMn[N]oprRsSuvw[N]xz] [-tN,..,N] [+bdeflLnstx] <@name> [x y [w h]] [/command] [popup.txt/@popup] [font [size]] [iconfile [N]]
  
 
== Switches ==
 
== Switches ==
=== Option Switches ===
+
Option Switches
 
* '''-a''' - Set as the active window  
 
* '''-a''' - Set as the active window  
 
* '''-b''' - Update horizontal scrollbar width for the listbox  
 
* '''-b''' - Update horizontal scrollbar width for the listbox  
Line 13: Line 12:
 
* '''-c''' - Close window  
 
* '''-c''' - Close window  
 
* '''-C''' - Center window  
 
* '''-C''' - Center window  
* '''-d''' - Create a separate desktop window (separate button in Windows taskbar) instead of a mIRC mdi window
+
* '''-d''' - Create desktop window instead of child
 
* '''-D''' - Enables @window's upper-left system menu choice to toggle @window between mdi/desktop without closing the window
 
* '''-D''' - Enables @window's upper-left system menu choice to toggle @window between mdi/desktop without closing the window
 
* '''-e[N]''' - Enable editbox; 0 = single, 1 = multi, 2 = auto, 3 = default  
 
* '''-e[N]''' - Enable editbox; 0 = single, 1 = multi, 2 = auto, 3 = default  
 
* '''-f''' - Makes the w h the required width and height of the text display area (instead of the window size)  
 
* '''-f''' - Makes the w h the required width and height of the text display area (instead of the window size)  
* '''-g[N]''' - Set/Unset highlight for window button; 0 = none, 1 = message colour, 2 = highlight colour, 3 = event colour
+
* '''-g[N]''' - Set/Unset highlight for window button; 0 = non, 1 = message color, 2 = highlight color
* '''-h''' - hide window (from the switchbar / treebar - it is still visible in mIRC's Window menu)
+
* '''-h''' - hide window  
 
* '''-H''' - Enables auto-hide for a side-listbox  
 
* '''-H''' - Enables auto-hide for a side-listbox  
 
* '''-i''' - Associate window with the active connection  
 
* '''-i''' - Associate window with the active connection  
Line 27: Line 26:
 
* '''-M''' - Trims off the text at tab stops  
 
* '''-M''' - Trims off the text at tab stops  
 
* '''-n[N]''' - Minimize window; 2 = Hide auto-expanding @Treebar item
 
* '''-n[N]''' - Minimize window; 2 = Hide auto-expanding @Treebar item
* '''-o''' - (used with -d) keep the desktop window on top of other windows 
+
* '''-o''' - Stop ontop (used with -d)  
* '''-p''' - Creates a [[Picture Windows - mIRC|picture window]]
+
* '''-p''' - Creates a [[Picture Windows - mIRC|picture windows]]
 
* '''-r''' - Restore window  
 
* '''-r''' - Restore window  
 
* '''-R''' - Reset window position to previously saved position  
 
* '''-R''' - Reset window position to previously saved position  
 
* '''-s''' - Sorts the main window (can be text or listbox)  
 
* '''-s''' - Sorts the main window (can be text or listbox)  
 
* '''-S''' - Sort the side-listbox  
 
* '''-S''' - Sort the side-listbox  
* '''-u''' - Removes on-top setting (-o)  
+
* '''-u''' - Removes ontop setting (-o)  
 
* '''-v''' - Close window when associated status window is closed  
 
* '''-v''' - Close window when associated status window is closed  
 
* '''-w[N]''' - Show/hide window from treebar or switchbar; 0 = hide from both, 1 = show in switchbar, 2 = show in treebar, 3 = show in both  
 
* '''-w[N]''' - Show/hide window from treebar or switchbar; 0 = hide from both, 1 = show in switchbar, 2 = show in treebar, 3 = show in both  
 
* '''-x''' - Maximize window  
 
* '''-x''' - Maximize window  
* '''-y''' - Disables logging menu for window.
 
 
* '''-z[N]''' - Place window button at end of switchbar; 0 = restore original position, 1 = place window at end. If [N] is not given it defaults to 1
 
* '''-z[N]''' - Place window button at end of switchbar; 0 = restore original position, 1 = place window at end. If [N] is not given it defaults to 1
 
+
Tab Switches
=== Tab Switches ===
+
* '''-tN,..,N''' - Lets you set custom tab positions in a listbox. If a text contains tabs, it will be spaced out accordingly.
* '''-tN,..,N''' - Lets you set custom tab positions in a listbox. If a text contains tabs, it will be spaced out accordingly, if you don't specify at least one tab stop, the window is not created but no error will be displayed.
+
*Appearance Switches
 
 
'''Note''': By default a window contains a tab stop every 8 characters and it is possible to use /window -M without using /window -t.
 
 
 
'''Note2''': It is now possible to use N = 0 if you are using -M, to create an invisible column, which can be useful to hide meta-data for that line.
 
 
 
'''Note3''': You can update the tab stop position once the window has been created with /window -t @win N N N, which is different from the orignal syntax /window -tN,N,N @win
 
 
 
=== Appearance Switches ===
 
Mostly applicable to Desktop windows:
 
 
* '''+b''' - Border
 
* '''+b''' - Border
 
* '''+d''' - No border  
 
* '''+d''' - No border  
 
* '''+e''' - 3d Edge  
 
* '''+e''' - 3d Edge  
 
* '''+f''' - Dialog frame  
 
* '''+f''' - Dialog frame  
* '''+l''' - Tool window <ref group="app." name="tool">Tools windows have no Titlebar or min/max/close buttons.</ref>
+
* '''+l''' - Tool window  
* '''+L''' - Tool window (hide from taskbar) <ref group="app." name="tool" />
+
* '''+L''' - Tool window (hide from taskbar)  
 
* '''+n''' - Minimize window  
 
* '''+n''' - Minimize window  
 
* '''+s''' - Sizeable
 
* '''+s''' - Sizeable
 
* '''+t''' - Titlebar
 
* '''+t''' - Titlebar
* '''+x''' - Maximize window
+
* '''+x''' - Maximize window  
 
 
<references group="app." />
 
  
 
== Parameters ==
 
== Parameters ==
 
* '''<@name>''' - The window name, must be prefixed with a @ symbol
 
* '''<@name>''' - The window name, must be prefixed with a @ symbol
 
* '''x y [w h]''' - The coordinates for the position and the optional width and height, use -1 for any of the parameters to use default (or existing) value
 
* '''x y [w h]''' - The coordinates for the position and the optional width and height, use -1 for any of the parameters to use default (or existing) value
* '''/command''' - default command which is used to prepopulate the window's editbox
+
* '''/command''' - default command
 
* '''popup.txt/@popup''' - popup filename, must be plain text file, or can be the name of a window, representing the popups menu of that window in a remote file
 
* '''popup.txt/@popup''' - popup filename, must be plain text file, or can be the name of a window, representing the popups menu of that window in a remote file
 
* '''font [size]''' - font name [font size]
 
* '''font [size]''' - font name [font size]
 
* '''iconfile [N]''' - sets a custom titlebar icon for the window [index]
 
* '''iconfile [N]''' - sets a custom titlebar icon for the window [index]
  
Note: If you specify -1 for any of the x,y,w,h values, the current value is used for an existing window, or a default value used if you are creating a new window.
+
Note: If you specify -1 for any of the x,y,w,h values, a default value is used, unless the window exists in which case the current value is used.
  
 
Note: mIRC does not allow window names @mirc (-2) or @mdi (-3) or @desktop (-1), that's because these names are used internally by mIRC to represent the different mIRC windows for $window(-1), $window(-2) and $window(-3). You can use these names in $window() though, to make things clearer if you want.
 
Note: mIRC does not allow window names @mirc (-2) or @mdi (-3) or @desktop (-1), that's because these names are used internally by mIRC to represent the different mIRC windows for $window(-1), $window(-2) and $window(-3). You can use these names in $window() though, to make things clearer if you want.
  
== Examples ==
+
== Example ==
=== Example 1 ===
+
Example 1
Picture window
 
 
<syntaxhighlight lang="mIRC">Alias Example1 {
 
<syntaxhighlight lang="mIRC">Alias Example1 {
 
   ;Create a desktop + picture window, Coordinates: (250,250), size 300x300
 
   ;Create a desktop + picture window, Coordinates: (250,250), size 300x300
Line 88: Line 74:
 
}</syntaxhighlight>
 
}</syntaxhighlight>
  
=== Example 2 ===
+
Example2
Custom window with side listbox
+
 
 
<syntaxhighlight lang="mIRC">Alias Example2 {
 
<syntaxhighlight lang="mIRC">Alias Example2 {
 
   ;Create a desktop, Coordinates: (100,100), size 500x350
 
   ;Create a desktop, Coordinates: (100,100), size 500x350
Line 112: Line 98:
 
}</syntaxhighlight>
 
}</syntaxhighlight>
  
=== Example 3 ===
+
Example of making unique window name from $nick while avoiding the 3 protected window names:
Making unique window name from $nick while avoiding the 3 protected window names:
+
 
 
<syntaxhighlight lang="mIRC">
 
<syntaxhighlight lang="mIRC">
 
//window -ek @ $+ $nick $+ $iif($istok(mdi desktop mirc,$nick,32),$ctime)
 
//window -ek @ $+ $nick $+ $iif($istok(mdi desktop mirc,$nick,32),$ctime)

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)