Property wnd.active Overload Gets the active (foreground) window. Calls API GetForegroundWindow. public static wnd active { get; } Property Value wnd Returns default(wnd) if there is no active window; more info: WndUtil.WaitForAnActiveWindow.