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 | + | 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] | + | /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 | |
* '''-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 | + | * '''-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 = | + | * '''-g[N]''' - Set/Unset highlight for window button; 0 = non, 1 = message color, 2 = highlight color |
− | * '''-h''' - hide window | + | * '''-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) | + | * '''-o''' - Stop ontop (used with -d) |
− | * '''-p''' - Creates a [[Picture Windows - mIRC|picture | + | * '''-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 | + | * '''-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 | ||
− | |||
* '''-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 | |
− | + | * '''-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 | + | *Appearance Switches |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
* '''+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 | + | * '''+l''' - Tool window |
− | * '''+L''' - Tool window (hide from taskbar) | + | * '''+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 |
− | |||
− | |||
== 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 | + | * '''/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, | + | 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. | ||
− | == | + | == Example == |
− | + | Example 1 | |
− | |||
<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> | ||
− | + | Example2 | |
− | + | ||
<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 of 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) |