Project

General

Profile

$window » History » Version 10

Per Amundsen, 08/10/2015 09:17 AM

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 1 Per Amundsen
.fontcs - TODO (returns 0)
37
.logfile - Name of logfile if one is open for the window.
38 10 Per Amundsen
.stamp - [[$true]] if timestamp is on for this window, otherwise [[$false]].
39
.icon - [[$true]] if icon is visible in Switchbar otherwise [[$false]].
40
.ontop - [[$true]] if window is on top otherwise [[$false]].
41 1 Per Amundsen
.type - Window type, channel/status/query/custom/chat/tool/panel.
42 2 Per Amundsen
.anysc - TODO (returns [[$false]])
43 1 Per Amundsen
.wid - Window id.
44
.cid - Connection id.
45
.hwnd - Window handle.
46
.sbtext - Switchbar button text for this window.
47
.sbcolor - Switchbar color event event/message/highlight for this window.
48
.sbstate - Switchbar button state (1 = visible, 2 = not visible) for this window.
49
.tbtext - Treebar text for this window.
50
.tbstate - Treebar state (1 = visible, 2 = not visible) for this window.
51 5 Per Amundsen
.lb - Nicklist state (2 = visible, 0 = not visible) for this window.
52
.idle - idle state.