docs » cp.ui.Slider


Slider Module.

API Overview

  • Constructors - API calls which return an object, typically one that offers API methods
  • Methods - API calls which can only be made on an object returned by a constructor

API Documentation

Constructors

new

Signature cp.ui.Slider.new(parent, finderFn) -> cp.ui.Slider
Type Constructor
Description Creates a new Slider
Parameters
  • * parent - The parent object. Should have an `isShowing` property.
  • * finderFn - The function which returns an `hs._asm.axuielement` for the slider, or `nil`.
Returns
  • * A new `Slider` instance.

Methods

snapshot

Signature `cp.ui.Slider:snapshot([path]) -> hs.image nil` </span>
Type Method
Description Takes a snapshot of the UI in its current state as a PNG and returns it.
Parameters
  • * path - (optional) The path to save the file. Should include the extension (should be `.png`).

results matching ""

    No results matching ""