Project

General

Profile

$window » History » Version 58

Per Amundsen, 02/23/2023 07:58 PM

1 26 Mr. BS
{{css
2 40 Mr. BS
.ktable{width:99%}.ktable td{border-bottom:none!important;border-top:none!important}.ktable th:nth-child(1){min-width:130px!important}.ktable tr:not(:first-child):hover{background-color:#ffffdd}
3 26 Mr. BS
}}
4
5 31 Mr. BS
_Added in 1.9.0_
6 1 Per Amundsen
7
*$window(N/@name/@wildcard, M)*
8
9 8 Per Amundsen
Returns properties for a window.
10 1 Per Amundsen
11 58 Per Amundsen
_See also [[/window]]._
12
13 1 Per Amundsen
*Parameters*
14 3 Per Amundsen
15 34 Mr. BS
table(ktable).
16 31 Mr. BS
|_<.Parameter|_<.Description|
17 42 Per Amundsen
| N/@name/@[[Scripting_Wildcards|wildcard]] | Name of the window or the Nth window. (@[[Scripting_Wildcards|wildcard]] is also possible if M is defined) |
18
| M | The Nth @[[Scripting_Wildcards|wildcard]] match. (optional) |
19 31 Mr. BS
| If N is -1 | returns properties for the desktop area. |
20
| If N is -2 | returns properties for the AdiIRC main window. |
21
| If N is -3 | returns properties for the MDI client area of the main window. |
22 26 Mr. BS
23 1 Per Amundsen
*Properties*
24
25 34 Mr. BS
table(ktable).
26 29 Mr. BS
|_<.Propertie|_<.Description|
27 26 Mr. BS
| .x | Horizontal position of the window relative to the mainform. |
28
| .y | Vertical position of the window relative to the mainform. |
29
| .w | Window width. |
30
| .h | Window height. |
31 46 Per Amundsen
| .cx | *TODO* |
32
| .cy | *TODO* |
33 26 Mr. BS
| .dx | Horizontal position of the window relative to the desktop. |
34
| .dy | Vertical position of the window relative to the desktop. |
35 51 Per Amundsen
| .dw | Width of the [[TextArea Control|Text Area]]. |
36
| .dh | Height of the [[TextArea Control|Text Area]]. |
37 26 Mr. BS
| .bw | Width of the bitmap for a picture window. |
38
| .bh | Height of the bitmap for a picture window. |
39
| .mdi | [[$true]] if the window is a MDI window/docked, otherwise [[$false]] |
40 47 Per Amundsen
| .title | The text of the window [[Titlebar Control|Titlebar]]. |
41 26 Mr. BS
| .state | minimized/maximized/hidden/normal. |
42
| .font | Name of the current font. |
43 48 Per Amundsen
| .fontsize | Size of the current font using the current display "DPI":https://en.wikipedia.org/wiki/Dots_per_inch. |
44 49 Per Amundsen
| .fontdialogsize | The real size of the current font. |
45 26 Mr. BS
| .fontbold | [[$true]] if the font is bold, otherwise [[$false]]. |
46
| .fontitalic | [[$true]] if the font is italic, otherwise [[$false]]. |
47
| .fontunderline | [[$true]] if the font is underline, otherwise [[$false]]. |
48
| .fontcs | returns the character set of the current font. |
49
| .logfile | Name of logfile if one is open for the window. |
50 46 Per Amundsen
| .historyfile | Name of the file [[Editbox Control|Editbox]] history will be saved to. *(AdiIRC only)* |
51
| .iconfile | Name of the icon file used for a custom icon. *(AdiIRC only)* |
52
| .backgroundfile | Name of the background file used for a custom background. *(AdiIRC only)* |
53 57 Per Amundsen
| .backgroundlayout | Gets background layout for this window. *(AdiIRC only)* |
54 26 Mr. BS
| .stamp | [[$true]] if timestamp is on for this window, otherwise [[$false]]. |
55 50 Per Amundsen
| .icon | [[$true]] if icon is visible in [[Switchbar_Control|Switchbar]] otherwise [[$false]]. |
56 26 Mr. BS
| .ontop | [[$true]] if window is on top otherwise [[$false]]. |
57 44 Per Amundsen
| .type | Window type, channel/status/query/custom/picture/chat/tool/panel. |
58 26 Mr. BS
| .anysc | [[$true]] if the window was created with the [[/window]] -i parameter, otherwise [[$false]]. |
59
| .wid | Window id. |
60
| .cid | Connection id. |
61
| .hwnd | Window handle. |
62 50 Per Amundsen
| .sbtext | [[Switchbar_Control|Switchbar]] button text for this window. |
63
| .sbcolor | [[Switchbar_Control|Switchbar]] color event event/message/highlight for this window. |
64
| .sbstate | [[Switchbar_Control|Switchbar]] button state (1 = visible, 0 = not visible) for this window. |
65
| .tbtext | [[Treebar_Control|Treebar]] text for this window. |
66
| .tbstate | [[Treebar_Control|Treebar]] state (1 = visible, 0 = not visible) for this window. |
67 52 Per Amundsen
| .lb | [[Nicklist Contro|listbox]] state (2 = side listbox, 1 = listbox, 0 = no listbox) for this window. |
68 46 Per Amundsen
| .topicbox | [[Topicbox Control|Topicbox]] state (2 = Show sticky, 1 = show, 2 = off) for this window. *(AdiIRC only)* |
69 26 Mr. BS
| .idle | idle state. |
70 51 Per Amundsen
| .isbottom | [[$true]] if the [[TextArea Control|Text Area]] is scrolled to the bottom, otherwise [[$false]]. *(AdiIRC only)* |
71 46 Per Amundsen
| .unread | Returns number of unread messages. (this include system messages, use .sbcolor to check the type, *AdiIRC only*) |
72
| .layer | Returns the window [[/setlayer|layer]]. *(AdiIRC only)* |
73 51 Per Amundsen
| .mscrollpos | Returns the current scrollbar position for the [[TextArea Control|Text Area]]. *(AdiIRC only)* |
74
| .mscrollmax | Returns the max scrollbar position for the [[TextArea Control|Text Area]]. *(AdiIRC only)* |
75 50 Per Amundsen
| .collapsed | Returns [[$true]] if the associated Status Window is collapsed in the [[Treebar_Control|Treebar]], otherwise [[$false]]. *(AdiIRC only)* |
76 53 Per Amundsen
| .eb | Returns 1 if the window has a [[Editbox Control|Editbox]], otherwise 0. *(AdiIRC only)* |
77 56 Per Amundsen
| .fullscreen | Returns [[$true]] if the window is fullscreen, otherwise [[$false]]. |