Method wnd.thisThread.isFocused Overload Returns true if w is the focused control or window of this thread. public static bool isFocused(wnd w) Parameters w (wnd) Returns bool Remarks Calls API GetFocus.