Project

General

Profile

$window » History » Version 35

Mr. BS, 03/07/2017 02:45 AM

1 26 Mr. BS
{{css
2 29 Mr. BS
.ktable{width:99%}.wiki table td:nth-child(1){width:130px}.ktable tr:not(:first-child):hover{background-color:#ffffdd}
3 26 Mr. BS
}}
4
5 35 Mr. BS
{{css_url('https://cdnjs.cloudflare.com/ajax/libs/sortable/0.8.0/css/sortable-theme-minimal.css')}}
6
7
{{js_url('https://cdnjs.cloudflare.com/ajax/libs/sortable/0.8.0/js/sortable.min.js')}}
8
9
{{html
10
<table class="sortable-theme-bootstrap" data-sortable="" data-sortable-initialized="true"> <thead> <tr> <th data-sortable="false">Browser</th> <th data-sorted="true" data-sorted-direction="descending">Usage</th> <th>Initial release</th> <th>Stable version</th> </tr> </thead> <tbody> <tr> <td>Chrome</td> <td>42.68%</td> <td data-value="2008">September 2, 2008</td> <td>31.0.1650.57</td> </tr> <tr> <td>Internet Explorer</td> <td>25.44%</td> <td data-value="1995">August 16, 1995</td> <td>11.0.1</td> </tr> <tr> <td>Firefox</td> <td>20.01%</td> <td data-value="2002">September 23, 2002</td> <td>25.0.1</td> </tr> <tr> <td>Safari</td> <td>8.39%</td> <td data-value="2003">January 7, 2003</td> <td>7.0</td> </tr> <tr> <td>Opera</td> <td>1.03%</td> <td data-value="1994">Late 1994</td> <td>18.0.1284.49</td> </tr> <tr> <td>Other</td> <td data-value="0">2.44%</td> <td data-value="-1"></td> <td></td> </tr> </tbody> </table>
11
}}
12
13 31 Mr. BS
_Added in 1.9.0_
14 1 Per Amundsen
15
*$window(N/@name/@wildcard, M)*
16
17 8 Per Amundsen
Returns properties for a window.
18 1 Per Amundsen
19
*Parameters*
20 3 Per Amundsen
21 34 Mr. BS
table(ktable).
22 31 Mr. BS
|_<.Parameter|_<.Description|
23
| N/@name/@wildcard | Name of the window or the Nth window. (@wildcard is also possible if M is defined) |
24
| M | The Nth @wildcard match. (optional) |
25
| If N is -1 | returns properties for the desktop area. |
26
| If N is -2 | returns properties for the AdiIRC main window. |
27
| If N is -3 | returns properties for the MDI client area of the main window. |
28 26 Mr. BS
29 1 Per Amundsen
*Properties*
30
31 34 Mr. BS
table(ktable).
32 29 Mr. BS
|_<.Propertie|_<.Description|
33 26 Mr. BS
| .x | Horizontal position of the window relative to the mainform. |
34
| .y | Vertical position of the window relative to the mainform. |
35
| .w | Window width. |
36
| .h | Window height. |
37
| .dx | Horizontal position of the window relative to the desktop. |
38
| .dy | Vertical position of the window relative to the desktop. |
39
| .dw | Width of the text display area. |
40
| .dh | Height of the text display area. |
41
| .bw | Width of the bitmap for a picture window. |
42
| .bh | Height of the bitmap for a picture window. |
43
| .mdi | [[$true]] if the window is a MDI window/docked, otherwise [[$false]] |
44
| .title | The text of the window Titlebar. |
45
| .state | minimized/maximized/hidden/normal. |
46
| .font | Name of the current font. |
47
| .fontsize | Size of the current font. |
48
| .fontbold | [[$true]] if the font is bold, otherwise [[$false]]. |
49
| .fontitalic | [[$true]] if the font is italic, otherwise [[$false]]. |
50
| .fontunderline | [[$true]] if the font is underline, otherwise [[$false]]. |
51
| .fontcs | returns the character set of the current font. |
52
| .logfile | Name of logfile if one is open for the window. |
53
| .historyfile | Name of the file Editbox history will be saved to. (AdiIRC only) |
54
| .iconfile | Name of the icon file used for a custom icon. (AdiIRC only) |
55
| .backgroundfile | Name of the background file used for a custom background. (AdiIRC only) |
56
| .stamp | [[$true]] if timestamp is on for this window, otherwise [[$false]]. |
57
| .icon | [[$true]] if icon is visible in Switchbar otherwise [[$false]]. |
58
| .ontop | [[$true]] if window is on top otherwise [[$false]]. |
59
| .type | Window type, channel/status/query/custom/chat/tool/panel. |
60
| .anysc | [[$true]] if the window was created with the [[/window]] -i parameter, otherwise [[$false]]. |
61
| .wid | Window id. |
62
| .cid | Connection id. |
63
| .hwnd | Window handle. |
64
| .sbtext | Switchbar button text for this window. |
65
| .sbcolor | Switchbar color event event/message/highlight for this window. |
66
| .sbstate | Switchbar button state (1 = visible, 0 = not visible) for this window. |
67
| .tbtext | Treebar text for this window. |
68
| .tbstate | Treebar state (1 = visible, 0 = not visible) for this window. |
69
| .lb | Nicklist state (2 = visible, 0 = not visible) for this window. |
70
| .topicbox | Topicbox state (2 = Show sticky, 1 = show, 2 = off) for this window. (AdiIRC only) |
71
| .idle | idle state. |
72
| .isbottom | [[$true]] if the textarea is scrolled to the bottom, otherwise [[$false]]. (AdiIRC only) |
73
| .unread | Returns number of unread messages. (this include system messages, use .sbcolor to check the type, AdiIRC only) |
74
| .layer | Returns the window [[/setlayer|layer]]. (AdiIRC only) |
75
| .mscrollpos | Returns the current scrollbar position for the message area. (AdiIRC only) |
76
| .mscrollmax | Returns the max scrollbar position for the message area. (AdiIRC only) |
77 27 Per Amundsen
| .collapsed | Returns [[$true]] if the associated Status Window is collapsed in the Treebar, otherwise [[$false]]. (AdiIRC only) |