Window package
Use the Window package to automate tasks relating to the window.
Use this variable in any number of actions within the automation task. If the application window title changes, then change the value assigned to the variable. The new application title is reflected in all the actions where the variable is used.
Actions in the Window package
The Window package includes the following actions:
Action | Description |
---|---|
Activate | Activates a window.
|
Assign | Assigns a source window variable's value to a designated
window.
Note: The regular expression (regex) is
currently not supported. |
Close | Closes the application window.
Insert a wildcard character (*) in the Window title field to search for window titles that can change. You can specify one or more wildcards (*) at the start, middle, or end of the value. For example, to perform an operation on any window that has Microsoft in the title, use a wildcard to indicate any string by adding it before or after the value: *Microsoft*. The bot first searches for the exact window title (Microsoft), and if it does not find a match, it searches for windows with the term Microsoft anywhere in the title. You can use a regular expression (regex) to identify a window title. Select the regular expression either as a String or Pattern for each regular expression condition and enter the value. By default, the Window title field is case-sensitive. You can enable Case insensitive regex flag to identify a window title that is not case-sensitive. For
example, you can enter the String value as
((\w*)-Notepad for all the window title names starting
with Note:
|
Close all | Closes all the windows In the Add window field, you can provide the title of the application windows that you do not want to close. You can also search the window titles by using (*) as a wildcard character. Specify one or more
(*) wildcards at the start, middle, or end of the title. For
example, to perform an operation on any window that has
Microsoft in the title, use a wildcard to
indicate any string by adding it before or after the value:
*Microsoft*. The bot first
searches for the exact window title (Microsoft),
and if it does not find a match, it searches for windows
with the term Microsoft anywhere in the title.
Note: To keep the Bot editor window open, ensure that you
add it in the Add window field.
For example, enter *Control Room | Automation
Anywhere* in the window title to keep it
open. |
Get active window title | Retrieves the title of the active window. In the
Assign the window title to variable
field, specify the variable. The
Control Room shows a descriptive
default variable name. If you create several output
variables, subsequent variable names are appended
with a -1, -2, -3, and so
on to avoid duplication. Note: The regular expression (regex) is
currently not supported. |
Maximize | Maximizes a window.
Insert a wildcard character (*) in the Window title field to search for window titles that can change. You can specify one or more wildcards (*) at the start, middle, or end of the value. For example, to perform an operation on any window that has Microsoft in the title, use a wildcard to indicate any string by adding it before or after the value: *Microsoft*. The bot first searches for the exact window title (Microsoft), and if it does not find a match, it searches for windows with the term Microsoft anywhere in the title. You can use a regular expression (regex) to identify a window title. Select the regular expression either as a String or Pattern for each regular expression condition and enter the value. By default, the Window title field is case-sensitive. You can enable Case insensitive regex flag to identify a window title that is not case-sensitive. For
example, you can enter the String value as
((\w*)-Notepad for all the window title names starting
with |
Minimize | Minimizes a window.
Insert a wildcard character (*) in the Window title field to search for window titles that can change. You can specify one or more wildcards (*) at the start, middle, or end of the value. For example, to perform an operation on any window that has Microsoft in the title, use a wildcard to indicate any string by adding it before or after the value: *Microsoft*. The bot first searches for the exact window title (Microsoft), and if it does not find a match, it searches for windows with the term Microsoft anywhere in the title. You can use a regular expression (regex) to identify a window title. Select the regular expression either as a String or Pattern for each regular expression condition and enter the value. By default, the Window title field is case-sensitive. You can enable Case insensitive regex flag to identify a window title that is not case-sensitive. For
example, you can enter the String value as
((\w*)-Notepad for all the window title names starting
with |
Resize | Resizes a window.
|
Restore | Restores a window.
|
Set title | Assigns a new window title to a window variable.
Note: The regular expression (regex) is
currently not supported. |