Get Value
Retrieves the value property of a UI 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 element.
- Window Selector - The selector for identifying the target window.
- Element Selector - The selector for identifying the target element.
Output
- Value - The value property of the element as a string.
How It Works
The Get Value node retrieves the value property of a UI element. When executed, the node:
- Uses the Window Selector and Element Selector to locate the target element
- Retrieves the ValuePattern of the element
- Extracts the Value property from the pattern
- Sets the output variable "Value" to the element's value
Requirements
- The target element must support the ValuePattern interface
- 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
- ValuePattern not supported by the element
Usage Notes
- This node works with elements that have a value property, such as text boxes, combo boxes, and sliders
- The returned value is always a string, regardless of the element's actual value type
- For elements with editable text, this returns the current text content
- For elements like sliders, this returns the current numeric value as a string