Find Java objects
List the controls of a Java application's window: name, role, text, state, actions and position, each with its path.
Command in the Java apps toolkit · id ooa.java_apps/find_objects · 6 inputs, 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Window title | String | No | Title of the application's window: text it contains, or a pattern with * and ?. | |
| Name | String | No | Name of the control (contains, or * and ?); empty for any. | |
| Role | String | No | Java accessibility role, e.g. push button, text, label, check box, combo box, table (contains, or * and ?). | |
| Process | String | No | Part of the Java program's name (its main class or jar, as Get Java applications lists it); narrows the search and is needed for programs named like tools. | |
| Largest value | Number | No | 500 | At most this many controls. |
| Timeout (seconds) | Number | No | 0 | How long to wait for at least one match, in seconds; 0 looks once. |
Outputs
| Output | Type | What it is |
|---|---|---|
| objects | List | Matching controls: path, name, role, description, text, enabled, visible, editable, checked, actions, bounds, pid. |
| count | Number | Number of matching controls. |