Show / Hide Table of Contents

Struct wnd.getwnd

Static functions of this class are used to get special windows (used like wnd w = wnd.getwnd.top;) and all windows. Instances of this class are used to get related windows and controls, like wnd w2 = w1.Get.FirstChild; (here w1 is a wnd variable).

public struct wnd.getwnd

Namespace: Au
Assembly: Au.dll

Constructors

Name Description
getwnd(wnd)

Properties

Name Description
DirectParent

Gets the direct parent window of this control. It can be the top-level window or another control.

FirstChild

Gets the first direct child control in the Z order.

FirstSibling

Gets the first sibling window or control in the Z order. If this is the first, returns this.

LastChild

Gets the last direct child control in the Z order.

LastSibling

Gets the last sibling window or control in the Z order. If this is the last, returns this, not default(wnd).

Owner

Gets the owner window of this top-level window.

Window

Gets the top-level parent window of this control. If this is a top-level window, returns this.

root

Calls API GetDesktopWindow. It gets the virtual parent window of all top-level windows.

shellWindow

Calls API GetShellWindow. It gets a window of the shell process (usually process "explorer", class name "Progman").

top

Gets the first top-level window in the Z order.

Methods

Name Description
AllOwned(bool, bool)

Gets windows owned by this window.

AllOwners(bool, bool)

Gets all owner windows (owner, its owner and so on) of this window.

Child(int)

Gets a direct child control by index.

Children(bool, bool, bool)

Gets child controls, including all descendants.

EnabledOwned(bool)

Gets the first (in Z order) enabled window owned by this window.

LastActiveOwnedOrThis(bool)

Gets the most recently active window in the chain of windows owned by this window, or this window itself if there are no such windows.

Next(int)

Gets next sibling window or control in the Z order.

Previous(int)

Gets previous sibling window or control in the Z order.

RootOwnerOrThis(bool)

Gets the bottom-most owner window in the chain of owner windows of this window. If this window is not owned, returns this window.

SiblingAbove()

Gets nearest visible sibling control above this.

SiblingAbove(int, int, bool)

Gets a visible sibling control above this.

SiblingBelow()

Gets nearest visible sibling control to below this.

SiblingBelow(int, int, bool)

Gets a visible sibling control below this.

SiblingLeft()

Gets nearest visible sibling control to the left from this.

SiblingLeft(int, int, bool)

Gets a visible sibling control to the left from this.

SiblingRight()

Gets nearest visible sibling control to the right from this.

SiblingRight(int, int, bool)

Gets a visible sibling control to the right from this.

allWindows(bool, bool)

Gets top-level windows.

allWindowsZorder()

Gets top-level windows ordered as in the Z order.

desktop(out wnd, out wnd)

Gets the desktop window and its child control that displays desktop icons and wallpaper.

isMainWindow(wnd, bool, bool)

Returns true if window w is considered a main window, ie probably is in the Windows taskbar. Returns false if it is invisible, cloaked, owned, toolwindow, menu, etc.

mainWindows(bool)

Gets main windows, ie those that probably are in the Windows taskbar.

nextMain(wnd, bool, bool, bool)

Gets next window in the Z order, skipping invisible and other windows that probably are not in the Windows taskbar.

threadWindows(int, bool, bool)

Gets top-level windows of a thread.

top2(out wnd)

Finds and returns the first non-topmost window in the Z order.