> For the complete documentation index, see [llms.txt](https://astro-rpa.gitbook.io/astro-rpa-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://astro-rpa.gitbook.io/astro-rpa-user-guide/g_elements/el_basic/els_desktop/el_desktop_restore.md).

# Restore window

![](/files/y1xBwLonXuvaaXswuQjS)

Element that restores the application window. The component works correctly only inside the Connect to an Application container.

![](/files/nCBKCwE3Y7rkV8dFGKxt)

Properties

\- Timeout\*: \[Int32] Maximum waiting time for process completion (ms)

```
C#
LTools.Desktop.DesktopApp app = LTools.Desktop.DesktopApp.Init(wf, null, "*Notepad*", 10000, true, LTools.Desktop.Model.DesktopTypes.UIAUTOMATION);
app.Restore();

Python
app = LTools.Desktop.DesktopApp.Init(wf, None, "*Notepad*", 10000, True, LTools.Desktop.Model.DesktopTypes.UIAUTOMATION)
app.Restore()

JavaScript
var app = _lib.LTools.Desktop.DesktopApp.Init(wf, null, "*Notepad*", 10000, true, _lib.LTools.Desktop.Model.DesktopTypes.UIAUTOMATION);
app.Restore();
```
