> For the complete documentation index, see [llms.txt](https://wfsys.gitbook.io/workflow-forms-syntax/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wfsys.gitbook.io/workflow-forms-syntax/workflow_forms/commands/screenshot_command.md).

# ScreenshotCommand

## Шаблон ScreenshotCommand <a href="#template_screenshot_command" id="template_screenshot_command"></a>

```xml
<Command Name="" Type="ScreenshotCommand" Assembly="Commands">
  <!--Тэги, общие для всех команд-->
  <Condition Name="" />
  <Lock Value="" />
  <!--Тэги, специфичные для ScreenshotCommand-->
  <HideThisForm></HideThisForm>
  <Top></Top>
  <Left></Left>
  <Bottom></Bottom>
  <Right></Right>
  <Height></Height>
  <Width></Width>
  <ImageFormat></ImageFormat>
  <ExportFileName Ask=""></ExportFileName>
</Command>
```

## Описание ScreenshotCommand <a href="#description_screenshot_command" id="description_screenshot_command"></a>

```xml
<Command Name="ScreenshotCommandName" Type="ScreenshotCommand" Assembly="Commands">
  <!--Тэги, общие для всех команд-->
  <!--Тэги, специфичные для ScreenshotCommand-->
</Command>
```

### Результаты выполнения ScreenshotCommand <a href="#result_screenshot_command" id="result_screenshot_command"></a>

#### Value <a href="#result_value" id="result_value"></a>

Путь до файла с изображением.

## Тэги, специфичные для ScreenshotCommand <a href="#tags_screenshot_command" id="tags_screenshot_command"></a>

### HideThisForm <a href="#hide_this_form" id="hide_this_form"></a>

Признак, определяющий, будет ли скрываться форма перед получение скриншота.

Необязательный тэг. Ожидается логическое значение.

По умолчанию используется значение False.

```xml
<HideThisForm>False</HideThisForm>
```

### Top <a href="#top" id="top"></a>

Координата верхнего края скриншота.

Необязательный тэг. Ожидается неотрицательное целочисленное значение.

По умолчанию используется значение 0.

```xml
<Top>0</Top>
```

Если тэг `<Top>` присутствует вместе с тэгом [`<Bottom>`](#bottom), то конфликт разрешается в пользу тэга `<Top>`.

### Left <a href="#left" id="left"></a>

Координата левого края скриншота.

Необязательный тэг. Ожидается неотрицательное целочисленное значение.

По умолчанию используется значение 0.

```xml
<Left>0</Left>
```

Если тэг `<Left>` присутствует вместе с тэгом [`<Right>`](#right), то конфликт разрешается в пользу тэга `<Left>`.

### Bottom <a href="#bottom" id="bottom"></a>

Координата нижнего края скриншота.

Необязательный тэг. Ожидается неотрицательное целочисленное значение.

```xml
<Bottom>200</Bottom>
```

Если тэг `<Bottom>` присутствует вместе с тэгом [`<Top>`](#top), то конфликт разрешается в пользу тэга `<Top>`.

Если тэги `<Top>` и `<Bottom>` будут отсутствовать, то для тэга `<Top>` будет использоваться значение по умолчанию - 0.

### Right <a href="#right" id="right"></a>

Координата правого края скриншота.

Необязательный тэг. Ожидается неотрицательное целочисленное значение.

```xml
<Right>100</Right>
```

Если тэг `<Right>` присутствует вместе с тэгом [`<Left>`](#left), то конфликт разрешается в пользу тэга `<Left>`.

Если тэги `<Left>` и `<Right>` будут отсутствовать, то для тэга `<Left>` будет использоваться значение по умолчанию - 0.

### Height <a href="#height" id="height"></a>

Высота скриншота.

Необязательный тэг. Ожидается неотрицательное целочисленное значение.

По умолчанию используется значение высоты экрана.

```xml
<Height>200</Height>
```

### Width <a href="#width" id="width"></a>

Ширина объекта.

Необязательный тэг. Ожидается неотрицательное целочисленное значение.

По умолчанию используется значение ширины экрана.

```xml
<Width>100</Width>
```

### ImageFormat <a href="#image_format" id="image_format"></a>

Название формата изображения для сохранения.

Необязательный тэг. Ожидается название одного из форматов изображений: Bmp, Gif, Jpg, Png, Tiff.

По умолчанию используется значение Png.

```xml
<ImageFormat>Png</ImageFormat>
```

### ExportFileName <a href="#export_file_name" id="export_file_name"></a>

Полный путь до файла, в который будут выгружены данные.

Необязательный тэг. Любое значение будет переведено в текстовое.

Если тэг `<ExportFileName>` отсутствует, то имя файла выбирается произвольно в системной папке Temp.

```xml
<ExportFileName Ask="False">ExportFileName</ExportFileName>
```

Поддерживаются [константы замены](/workflow-forms-syntax/workflow_forms/values/replacement_constants.md).

#### Атрибут `Ask` <a href="#attributes_tag_export_file_name" id="attributes_tag_export_file_name"></a>

Признак, определяющий, будет ли задан вопрос о пути экспорта файла.

Необязательный атрибут. Ожидается логическое значение.

По умолчанию используется значение False.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://wfsys.gitbook.io/workflow-forms-syntax/workflow_forms/commands/screenshot_command.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
