Skip to main content

Set Slider

Sets the value of a slider element to a specific numeric value.

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.
  • Value - The numeric value to set the slider to.

How It Works

The Set Slider node sets the value of a slider element to a specific numeric value. 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
  3. Sets the slider's value to the specified 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
  • The specified Value must be within the slider's valid range

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
  • Specified Value is outside the slider's valid range

Usage Notes

  • The Value input should be a number within the slider's minimum and maximum range
  • Slider ranges vary by implementation - some may range from 0-100, others may have different ranges
  • This node is useful for configuring settings or adjusting values in applications with slider controls
  • The slider element must be enabled and visible to be interacted with
  • Setting a slider value may trigger associated events in the application