Show / Hide Table of Contents

Method wnd.getwnd.nextMain


Overload

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

public static wnd nextMain(wnd w = default, bool allDesktops = false, bool skipMinimized = false, bool retryFromTop = false)
Parameters
w  (wnd)

Start from this window. If default(wnd), starts from the top of the Z order.

allDesktops  (bool)

On Windows 10 include windows on all virtual desktops. On Windows 8 include Windows Store apps if possible; read more: wnd.getwnd.allWindows.

skipMinimized  (bool)

Skip minimized windows.

retryFromTop  (bool)

If w is not default(wnd) and there are no matching windows after it, retry from the top of the Z order. Then can return w.

Returns
wnd

default(wnd) if there are no such windows.

Remarks

Uses wnd.getwnd.isMainWindow. This function is quite slow. Does not match the order of buttons in the Windows taskbar.