private static IntPtr GetSteamPromptWindow() { var windows = WindowTools.GetWindowsWithTitleMatching(LaunchGamePromptRegex); return(Array.Find(windows, w => WindowTools.GetProcessForWindow(w).ProcessName == ProcessName)); }