// Get the Steam window IntPtr steamWindow = BFS.Window.GetWindowByText("Steam"); // Close the window BFS.Window.Close(steamWindow);