Skip to main content

Set window visibility

Sophie avatar
Written by Sophie
Updated over 2 weeks ago

Definition and Usage

This command allows you to show or hide a specific window in your operating system. You can target the window using different methods such as a window object, title/class name, or UI element.


Parameter Values

Input parameters

Parameter

Description

Possible Values

Required

Options / Notes

Get window by

Specify the window to show/hide

Window object, Title or class, Window UI element

Yes

Determines which method to use for identifying the window

Window

Select a window object that was obtained earlier

-

Yes, if "Window object" selected

Must be a previously defined window object

Title

Select or enter the window title

-

Yes, if "Title or class" selected

-

Specify window class

Specify window class

-

Optional

When checked, allows targeting by class name

Class name

Enter the class name of a window

-

Yes, if "Specify window class" checked

-

Use RegEx

Use regular expressions to match specific text formats

-

Optional

Enables pattern matching for title or class name

Element

Select or capture an element to operate on

-

Yes, if "Window UI element" selected

-

Visibility

Choose in which state to set the window visibility to

Visible, Hidden

Yes

Controls whether the window is shown or hidden

Error handling

Parameter Name

Description

Throw error & stop

When an error occurs, the action will trigger an error and stop the execution of the entire app.

Retry command

If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process.

Ignore error & continue

When an error occurs, the action will be ignored, and the workflow will continue without interruption.

Variables produced

This action doesn't produce any variables.


Using Variables in Conditions

You can use variables in the parameters of this command by clicking the variable icon or typing {variableName}. For example, you might use a variable to specify a dynamic window title that changes during execution.


Notes

  • The window must exist in the system for this command to work properly

  • For "Window object" option, ensure you have previously used a command that captures and stores window objects

  • When using RegEx, common patterns include ^abc (starts with abc), \d+ (any numbers), or .*.csv$ (ends with .csv)

  • Hidden windows continue to run in the background but are not visible to the user

  • If the specified window cannot be found, the command will result in an error

Did this answer your question?