Close Window
Closes a window identified by a selector by terminating its process.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.
Inputs
- Handle - The handle of the window to close.
- Window Selector - The selector for identifying the target window to close.
How It Works
The Close Window node terminates the process of a window identified by a selector. When executed, the node:
- Uses the Window Selector to locate the target window
- Finds the process associated with the window
- Terminates the process, effectively closing the window
Requirements
- The window must be identifiable by the provided Window Selector
- The application must allow its process to be terminated
Error Handling
The node will return specific errors in the following cases:
- Empty or invalid Window Selector
- Window not found
- Process not found
- Insufficient permissions to terminate the process
Usage Notes
- This node closes the window by terminating its entire process, not by sending a close message
- All windows associated with the same process will be closed
- Use with caution as unsaved data in the application may be lost
- For a more graceful close, consider using application-specific methods if available