$window » History » Version 16
Per Amundsen, 05/30/2016 01:03 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 | 16 | Per Amundsen | .historyfile - Name of the file Editbox history will be saved to. (AdiIRC only) |
39 | 10 | Per Amundsen | .stamp - [[$true]] if timestamp is on for this window, otherwise [[$false]]. |
40 | .icon - [[$true]] if icon is visible in Switchbar otherwise [[$false]]. |
||
41 | .ontop - [[$true]] if window is on top otherwise [[$false]]. |
||
42 | 1 | Per Amundsen | .type - Window type, channel/status/query/custom/chat/tool/panel. |
43 | 2 | Per Amundsen | .anysc - TODO (returns [[$false]]) |
44 | 1 | Per Amundsen | .wid - Window id. |
45 | .cid - Connection id. |
||
46 | .hwnd - Window handle. |
||
47 | .sbtext - Switchbar button text for this window. |
||
48 | .sbcolor - Switchbar color event event/message/highlight for this window. |
||
49 | .sbstate - Switchbar button state (1 = visible, 2 = not visible) for this window. |
||
50 | .tbtext - Treebar text for this window. |
||
51 | .tbstate - Treebar state (1 = visible, 2 = not visible) for this window. |
||
52 | 5 | Per Amundsen | .lb - Nicklist state (2 = visible, 0 = not visible) for this window. |
53 | .idle - idle state. |
||
54 | 12 | Per Amundsen | .isbottom - [[$true]] if the textarea is scrolled to the bottom, otherwise [[$false]]. (AdiIRC only) |
55 | 14 | Per Amundsen | .unread - Returns number of unread messages. (this include system messages, use .sbcolor to check the type, AdiIRC only) |
56 | 15 | Per Amundsen | .layer - Returns the window [[/setlayer|layer]]. (AdiIRC only) |