public void ExitWindow() { Keyboard.SendKeys("{F4}", ModifierKeys.Alt); Playback.Wait(100); Keyboard.SendKeys("{RIGHT}{ENTER}"); }