Skip to content

IF window exists

Function Description

TIP

Check if the specified window exists

IF window exists

Configuration Item Description

General

Command Input

  • Get window methodInteger: Select the method to get the window

  • Window objectTWinObj: Pass in a window object obtained through the 'Get Window Object' function

  • TargetTTarget: Capture a new element or select a previously recorded window element from the list

  • Window titlestring: Select or enter the window title

  • Add window typeBoolean: Whether to add a window type

  • Window typestring: Select or enter the window type. Typically used when multiple windows have the same title and cannot be distinguished by title alone

  • Match by wildcardBoolean: Whether to enable wildcard matching, which determines if common wildcards are used as regular characters or as wildcards. For example, when selected, ‘*Notepad’ matches windows whose titles end with ‘Notepad’

  • Window existenceInteger: Select whether to check if the window exists or does not exist

Command Output

No output for the current command

Error Handling

  • Print Error LogsBoolean: Whether to print error logs to the "Logs" panel when the command fails. Default is checked.

  • Handling MethodInteger:

    • Terminate Process: If the command fails, terminate the process.

    • Ignore Exception and Continue Execution: If the command fails, ignore the exception and continue the process.

    • Retry This Command: If the command fails, retry the command a specified number of times with a specified interval between retries.

Usage Example

Process logic description:

Common Errors and Handling

None

Frequently Asked Questions

None