# Закрыть окно

![](/files/HLDGfCdEJv7V0kkY1KVG)

Данный шаблон нужен для закрытия окна приложения в ОС Windows. И соответственно, прекращения работы приложения. Шаблон содержит единственный параметр:

* Заголовок. Заголовок окна приложения. Например, как показано на рисунке, заголовок программы Блокнот с несохраненным файлом. Для удобства получения заголовка окна, нажмите кнопку "Получить инфо окна" и перетащите прицел на необходимое окно. Утилита-прицел сфокусируется на нужном вам окне и получит информацию об окне приложения.

![](/files/6hZ1745gqgbdfrBojIGh)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.onerpa.ru/rpa-platforma-onerpa/shablony-etapov/shablony-etapov-windows/okna/zakryt-okno.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
