Skip to main content

Get Combobox

Retrieves the selected values from a combobox element.

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 containing the combobox.
  • Window Selector - The selector for identifying the target window.
  • Element Selector - The selector for identifying the combobox element.

Output

  • Values - An array of strings representing the currently selected values in the combobox.

How It Works

The Get Combobox node retrieves the selected values from a combobox element. When executed, the node:

  1. Uses the Window Selector and Element Selector to locate the target combobox element
  2. Retrieves the SelectionPattern of the element to determine its selected items
  3. Extracts the names of all selected items and returns them as an array

Requirements

  • The target element must be a combobox that supports the SelectionPattern
  • Both Window Selector and Element Selector are required to identify the target element

Error Handling

The node will return specific errors in the following cases:

  • Empty or invalid Window Selector or Element Selector
  • Element not found
  • SelectionPattern not supported by the element

Usage Notes

  • The output is an array of strings, even if only one item is selected
  • For single-selection comboboxes, the array will contain only one element
  • For multi-selection comboboxes, the array will contain all selected items
  • The values returned are the display names of the selected items, not their internal values