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