История страницы
...
Close window if exists Version 14 (Net)
...
Action group: Windows
Описание
Данное действие предназначено для закрытия окна, если оно существует.
Иконка
Настройки
...
Англ. наименование
...
Время, в течении которого будет происходить поиск нужного окна.
Измеряется в миллисекундах.
Предельное время ожидания создания окна.
Если окно не будет найдено, то данный блок не произведет действий, сценарий продолжится.
По умолчанию значение равно "0".
...
Description
This action is intended to close the window, if it exists.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Window name | The name of the window to apply the action to. Search is possible by partial window name using a regular expression | Robin.String | Yes | |
Time-out | Time in milliseconds to find required window. | Robin.Numeric | No | |
Window order | When found more than one window, action would interact with window defined by order | Robin.Numeric | No |
Special conditions of use
The action does not work with taskbar, explorer, and workspace.
Example of use
Task
There is an open Paint window. It is necessary to close it.
Solution
Use the "Close window if exists" action.
Implementation
- Move the "Close window if exists" action to the workspace.
and set its parameters:
In the "Window name" field specify the name of the window to be closed.
In the "Timeout" field specify - 3000. - Click "Start" in the top panel to start the robot.
Result
The program robot completed successfully. The window is closed.
...
Window number
...
Особые условия использования
Группа не работает с панелью задач, проводником и рабочим столом.
Пример использования
Задача: существует открытое окно "Paint". Необходимо его закрыть.
Решение: воспользоваться действием "Закрыть окно, если существует".
Реализация:
...
Результат:
Программный робот отработал успешно. Окно закрыто.