Close window if exists Version 14 (Net)

Action group: Windows


Description

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

Action icon

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.

     and set its parameters:

    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.


 

  • Нет меток