Skip to main content

Get Slider

Retrieves the current value of a slider 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 slider.
  • Window Selector - The selector for identifying the target window.
  • Element Selector - The selector for identifying the slider element.

Output

  • Value - The current numeric value of the slider.

How It Works

The Get Slider node retrieves the current value of a slider element. When executed, the node:

  1. Uses the Window Selector and Element Selector to locate the target slider element
  2. Retrieves the RangeValuePattern of the element to determine its current value
  3. Sets the output variable "Value" to the slider's current numeric value

Requirements

  • The target element must be a slider that supports the RangeValuePattern
  • 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
  • RangeValuePattern not supported by the element

Usage Notes

  • The output value is a numeric value representing the slider's current position
  • The value range depends on the specific slider implementation
  • This node only works with elements that implement the RangeValuePattern interface