Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Close window if exists Version 14 (Net)

...

Action group: Windows

Описание

Данное действие предназначено для закрытия окна, если оно существует.

Иконка

Image Removed

Настройки

...

Англ. наименование

...

Время, в течении которого будет происходить поиск нужного окна.

Измеряется в миллисекундах.

Предельное время ожидания создания окна.

Если окно не будет найдено, то данный блок не произведет действий, сценарий продолжится.

По умолчанию значение равно "0".

...

Description

This action is intended to close the window, if it exists.

Action icon

Image Added

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
Window nameThe name of the window to apply the action to. Search is possible by partial window name using a regular expressionRobin.String
Yes
Time-outTime in milliseconds to find required window.Robin.Numeric
No
Window orderWhen found more than one window, action would interact with window defined by orderRobin.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

  1. Move the "Close window if exists" action to the workspace.
    Image Added
     and set its parameters:
    Image Added
    In the "Window name" field specify the name of the window to be closed.  
    In the "Timeout" field specify - 3000. 
  2. Click "Start" in the top panel to start the robot.

Result

The program robot completed successfully. The window is closed.

Image Added

 

...

Window number

...

Особые условия использования

Группа не работает с панелью задач, проводником и рабочим столом.

Пример использования 

Задача: существует открытое окно "Paint". Необходимо его закрыть. 

Решение: воспользоваться действием "Закрыть окно, если существует". 

Реализация:

...

Результат:

Программный робот отработал успешно. Окно закрыто. 

Image Removed