Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Window titleStringNoTitle of the application's window: text it contains, or a pattern with * and ?.
NameStringNoName of the control (contains, or * and ?); empty for any.
RoleStringNoJava accessibility role, e.g. push button, text, label, check box, combo box, table (contains, or * and ?).
ProcessStringNoPart 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 valueNumberNo500At most this many controls.
Timeout (seconds)NumberNo0How long to wait for at least one match, in seconds; 0 looks once.

Outputs​

OutputTypeWhat it is
objectsListMatching controls: path, name, role, description, text, enabled, visible, editable, checked, actions, bounds, pid.
countNumberNumber of matching controls.