public void WaitForSteamPrompt() { Thread.Sleep(500); var promptWindow = GetSteamPromptWindow(); WindowTools.FocusWindow(promptWindow); while (promptWindow != IntPtr.Zero) { Thread.Sleep(10); promptWindow = GetSteamPromptWindow(); } }