Project

General

Profile

$window » History » Revision 6

Revision 5 (Per Amundsen, 03/05/2015 04:43 AM) → Revision 6/58 (Per Amundsen, 03/20/2015 12:44 PM)

_Added in 1.9.0_ 

 *$window(N/@name)* 

 Returns properties for a window. 

 *Parameters* 

 N/@name - Name of the window or the N'th window. (@wildcard is also possible) 

 If N is -1, returns properties for the desktop area. 
 If N is -2, returns properties for the AdiIRC main window. 
 If N is -3, returns properties for the MDI client area of the main window. 

 *Properties* 

 .x - Horizontal position of the window relative to the mainform. 
 .y - Vertical position of the window relative to the mainform.  
 .w - Window width. 
 .h - Window height.  
 .dx - Horizontal position of the window relative to the desktop. 
 .dy - Vertical position of the window relative to the desktop. 
 .dw - Width of the text display area. 
 .dh - Height of the text display area.  
 .bw - Width of the bitmap for a picture window. 
 .bh - Height of the bitmap for a picture window.  
 .mdi - [[$true]] if the window is a MDI window/docked, else [[$false]] 
 .title - The text of the window Titlebar. 
 .state - minimized/maximized/hidden/normal. 
 .font - Name of the current font. 
 .fontsize - Size of the current font.  
 .fontbold - [[$true]] if the font is bold, otherwise returns [[$false]]. 
 .fontitalic - [[$true]] if the font is italic, otherwise returns [[$false]].  
 .fontunderline - [[$true]] if the font is underline, otherwise returns [[$false]].  
 .fontcs - TODO (returns 0) 
 .logfile - Name of logfile if one is open for the window. 
 .stamp - [[$true]] if timestamp is on for this window, else [[$false]]. 
 .icon - [[$true]] if icon is visible in Switchbar else [[$false]]. 
 .ontop - [[$true]] if window is on top else [[$false]]. 
 .type - Window type, channel/status/query/custom/chat/tool/panel. 
 .anysc - TODO (returns [[$false]]) 
 .wid - Window id. 
 .cid - Connection id. 
 .hwnd - Window handle. 
 .sbtext - Switchbar button text for this window. 
 .sbcolor - Switchbar color event event/message/highlight for this window. 
 .sbstate - Switchbar button state (1 = visible, 2 = not visible) for this window. 
 .tbtext - Treebar text for this window. 
 .tbstate - Treebar state (1 = visible, 2 = not visible) for this window. 
 .lb - Nicklist state (2 = visible, 0 = not visible) for this window. 
 .idle - idle state.