$window » History » Version 7
Per Amundsen, 06/27/2015 05:07 PM
| 1 | 1 | Per Amundsen | _Added in 1.9.0_ |
|---|---|---|---|
| 2 | |||
| 3 | 7 | Per Amundsen | *$window(N/@name/@wildcard, N)* |
| 4 | 1 | Per Amundsen | |
| 5 | Returns properties for a window. |
||
| 6 | |||
| 7 | *Parameters* |
||
| 8 | |||
| 9 | 7 | Per Amundsen | N/@name/@wildcard - Name of the window or the N'th window. (@wildcard is also possible if N is defined) |
| 10 | N - The N'th @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 | .mdi - [[$true]] if the window is a MDI window/docked, else [[$false]] |
||
| 29 | .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 | .fontbold - [[$true]] if the font is bold, otherwise returns [[$false]]. |
||
| 34 | .fontitalic - [[$true]] if the font is italic, otherwise returns [[$false]]. |
||
| 35 | 6 | Per Amundsen | .fontunderline - [[$true]] if the font is underline, otherwise returns [[$false]]. |
| 36 | 1 | Per Amundsen | .fontcs - TODO (returns 0) |
| 37 | .logfile - Name of logfile if one is open for the window. |
||
| 38 | .stamp - [[$true]] if timestamp is on for this window, else [[$false]]. |
||
| 39 | .icon - [[$true]] if icon is visible in Switchbar else [[$false]]. |
||
| 40 | .ontop - [[$true]] if window is on top else [[$false]]. |
||
| 41 | .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. |