From WikiChip
Editing mirc/identifiers/$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 Identifier}}'''$window''' returns information about the specified window for the current connection | + | {{mirc title|$window Identifier}}'''$window''' returns information about the specified window for the current connection. |
== Synopsis == | == Synopsis == | ||
− | < | + | <pre>$window(N/name)</pre> |
− | |||
− | |||
− | </ | ||
== Parameters == | == Parameters == | ||
* '''N''' - The Nth @custom window, if N is 0, returns the total number of windows. | * '''N''' - The Nth @custom window, if N is 0, returns the total number of windows. | ||
− | * '''Name''' - The name of query/channel/@custom window, or "status window" | + | * '''Name''' - The name of query/channel/@custom window, or "status window" |
'''Note''': you can use -1 or @desktop to refer to the screen, -2 or @mirc to refer to the main mIRC window, and -3 or @mdi to refer to the mdi window where all others windows inside mIRC are displayed, these @name are reserved. You can use the .x .y .w .h .dx .dy .dw .dh properties with these parameters to get the size of these windows (or your screen's size) | '''Note''': you can use -1 or @desktop to refer to the screen, -2 or @mirc to refer to the main mIRC window, and -3 or @mdi to refer to the mdi window where all others windows inside mIRC are displayed, these @name are reserved. You can use the .x .y .w .h .dx .dy .dw .dh properties with these parameters to get the size of these windows (or your screen's size) | ||
Line 17: | Line 14: | ||
* '''x,y,w,h''' - the left, top positions, and the width and height of the window respectively | * '''x,y,w,h''' - the left, top positions, and the width and height of the window respectively | ||
* '''dx,dy''' - the left, top positions of the window relative to the desktop | * '''dx,dy''' - the left, top positions of the window relative to the desktop | ||
− | |||
* '''dw,dh''' - the width and height of the text display area | * '''dw,dh''' - the width and height of the text display area | ||
* '''bw,bh''' - the width and height of the bitmap for a graphic window | * '''bw,bh''' - the width and height of the bitmap for a graphic window | ||
Line 25: | Line 21: | ||
* '''font''' - the name of the window's font | * '''font''' - the name of the window's font | ||
* '''fontsize''' - the window's font size | * '''fontsize''' - the window's font size | ||
− | |||
* '''fontbold''' - $true if the font is bold, otherwise returns $false | * '''fontbold''' - $true if the font is bold, otherwise returns $false | ||
* '''fontitalic''' - $true if the font is italic, otherwise returns $false | * '''fontitalic''' - $true if the font is italic, otherwise returns $false | ||
* '''fontcs''' - the character set of the current font | * '''fontcs''' - the character set of the current font | ||
− | |||
* '''logfile''' - the path\filename of the window's logfile if one is open | * '''logfile''' - the path\filename of the window's logfile if one is open | ||
* '''stamp''' - timestamp setting, $true or $false | * '''stamp''' - timestamp setting, $true or $false | ||
Line 44: | Line 38: | ||
* '''tbtext''' - returns the treebar button text | * '''tbtext''' - returns the treebar button text | ||
* '''tbstate''' - returns treebar button state for a window, 0=hidden 1=not hidden | * '''tbstate''' - returns treebar button state for a window, 0=hidden 1=not hidden | ||
− | * '''idle''' - returns the number of second elapsed since someone different from you | + | * '''idle''' - returns the number of second elapsed since someone different from you spoke in a channel/query |
* '''lb''' - returns 0 if the window has no listbox, 1 if it has a listbox, or 2 if it has a side listbox | * '''lb''' - returns 0 if the window has no listbox, 1 if it has a listbox, or 2 if it has a side listbox | ||
− | |||
== Example == | == Example == |