GetWindowState

CUTools

Security Level 1 - Read
SindByte tool execution flow: voice command, AI parse, execute, validate, result

Description

Determine the current state of any window! GetWindowState gives you detailed information about window state, position, size, and visibility - perfect for conditional automation and UI monitoring.

Check whether a window is minimized, maximized, active, or in the background. Always know exactly which application is displayed and how - the foundation for intelligent window control!

Why This Tool Stands Out

Perfect for:

Automation developers, QA testers, and power users who need to control conditional workflows based on window states. Ideal for intelligent UI automation and window management.

Workflow support; time savings depend on the task

Instead of searching for windows manually and checking their status, you get all the information with a single API call - immediately available for your automation logic.

JSON Parameters

Example Call

{
  "tool": "GetWindowState",
  "params": {
    "windowHandle": 123456
  }
}

Example Usage

Typical AI Command

  • "Check whether the Notepad window is maximized and bring it to the foreground if it is minimized."

Return Values

The tool returns an object with the following properties:

Related Tools

Download CUTools

Get access to all 17 Computer Use tools for Windows automation.

Download Now
Back to CUTools