Project

General

Profile

$window » History » Version 4

Per Amundsen, 01/16/2015 10:37 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$window(N/@name)*
4
5
Returns properties for a window.
6
7
*Parameters*
8
9 4 Per Amundsen
N/@name - Name of the window or the N'th window. (@wildcard is also possible)
10 1 Per Amundsen
11 3 Per Amundsen
If N is -1, returns properties for the desktop area.
12
If N is -2, returns properties for the AdiIRC main window.
13
If N is -3, returns properties for the MDI client area of the main window.
14
15 1 Per Amundsen
*Properties*
16
17
.x - Horizontal position of the window relative to the mainform.
18
.y - Vertical position of the window relative to the mainform. 
19
.w - Window width.
20
.h - Window height. 
21
.dx - Horizontal position of the window relative to the desktop.
22
.dy - Vertical position of the window relative to the desktop.
23
.dw - Width of the text display area.
24
.dh - Height of the text display area. 
25
.bw - Width of the bitmap for a picture window.
26
.bh - Height of the bitmap for a picture window. 
27
.mdi - [[$true]] if the window is a MDI window/docked, else [[$false]]
28
.title - The text of the window Titlebar.
29
.state - minimized/maximized/hidden/normal.
30
.font - Name of the current font.
31
.fontsize - Size of the current font. 
32
.fontbold - [[$true]] if the font is bold, otherwise returns [[$false]].
33
.fontitalic - [[$true]] if the font is italic, otherwise returns [[$false]]. 
34
.fontcs - TODO (returns 0)
35
.logfile - Name of logfile if one is open for the window.
36
.stamp - [[$true]] if timestamp is on for this window, else [[$false]].
37
.icon - [[$true]] if icon is visible in Switchbar else [[$false]].
38
.ontop - [[$true]] if window is on top else [[$false]].
39
.type - Window type, channel/status/query/custom/chat/tool/panel.
40 2 Per Amundsen
.anysc - TODO (returns [[$false]])
41 1 Per Amundsen
.wid - Window id.
42
.cid - Connection id.
43
.hwnd - Window handle.
44
.sbtext - Switchbar button text for this window.
45
.sbcolor - Switchbar color event event/message/highlight for this window.
46
.sbstate - Switchbar button state (1 = visible, 2 = not visible) for this window.
47
.tbtext - Treebar text for this window.
48
.tbstate - Treebar state (1 = visible, 2 = not visible) for this window.
49
.lb - Nicklist state (2 = visible, 0 = not visible) for this window