Project

General

Profile

$window » History » Version 21

Per Amundsen, 09/26/2016 04:14 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3 8 Per Amundsen
*$window(N/@name/@wildcard, M)*
4 1 Per Amundsen
5
Returns properties for a window.
6
7
*Parameters*
8
9 9 Per Amundsen
N/@name/@wildcard - Name of the window or the Nth window. (@wildcard is also possible if M is defined)
10
M - The Nth @wildcard match. (optional)
11 1 Per Amundsen
12 3 Per Amundsen
If N is -1, returns properties for the desktop area.
13
If N is -2, returns properties for the AdiIRC main window.
14
If N is -3, returns properties for the MDI client area of the main window.
15
16 1 Per Amundsen
*Properties*
17
18
.x - Horizontal position of the window relative to the mainform.
19
.y - Vertical position of the window relative to the mainform. 
20
.w - Window width.
21
.h - Window height. 
22
.dx - Horizontal position of the window relative to the desktop.
23
.dy - Vertical position of the window relative to the desktop.
24
.dw - Width of the text display area.
25
.dh - Height of the text display area. 
26
.bw - Width of the bitmap for a picture window.
27
.bh - Height of the bitmap for a picture window. 
28 10 Per Amundsen
.mdi - [[$true]] if the window is a MDI window/docked, otherwise [[$false]]
29 1 Per Amundsen
.title - The text of the window Titlebar.
30
.state - minimized/maximized/hidden/normal.
31
.font - Name of the current font.
32
.fontsize - Size of the current font. 
33 10 Per Amundsen
.fontbold - [[$true]] if the font is bold, otherwise [[$false]].
34
.fontitalic - [[$true]] if the font is italic, otherwise [[$false]]. 
35
.fontunderline - [[$true]] if the font is underline, otherwise [[$false]]. 
36 20 Per Amundsen
.fontcs - returns the character set of the current font.
37 1 Per Amundsen
.logfile - Name of logfile if one is open for the window.
38 16 Per Amundsen
.historyfile - Name of the file Editbox history will be saved to. (AdiIRC only)
39 17 Per Amundsen
.iconfile - Name of the icon file used for a custom icon. (AdiIRC only)
40 18 Per Amundsen
.backgroundfile - Name of the background file used for a custom background. (AdiIRC only)
41 10 Per Amundsen
.stamp - [[$true]] if timestamp is on for this window, otherwise [[$false]].
42
.icon - [[$true]] if icon is visible in Switchbar otherwise [[$false]].
43
.ontop - [[$true]] if window is on top otherwise [[$false]].
44 1 Per Amundsen
.type - Window type, channel/status/query/custom/chat/tool/panel.
45 19 Per Amundsen
.anysc - [[$true]] if the window was created with the [[/window]] -i parameter, otherwise [[$false]].
46 1 Per Amundsen
.wid - Window id.
47
.cid - Connection id.
48
.hwnd - Window handle.
49
.sbtext - Switchbar button text for this window.
50
.sbcolor - Switchbar color event event/message/highlight for this window.
51
.sbstate - Switchbar button state (1 = visible, 2 = not visible) for this window.
52
.tbtext - Treebar text for this window.
53 21 Per Amundsen
.tbstate - Treebar state (1 = visible, 0 = not visible) for this window.
54 5 Per Amundsen
.lb - Nicklist state (2 = visible, 0 = not visible) for this window.
55
.idle - idle state.
56 12 Per Amundsen
.isbottom - [[$true]] if the textarea is scrolled to the bottom, otherwise [[$false]]. (AdiIRC only)
57 14 Per Amundsen
.unread - Returns number of unread messages. (this include system messages, use .sbcolor to check the type, AdiIRC only)
58 15 Per Amundsen
.layer - Returns the window [[/setlayer|layer]]. (AdiIRC only)