Timed duration gestures

I work in audio programs that have volume sliders and am trying to create a volume fade in said program. I know how to do the click and drag, but not over a period of say 5 seconds. Is it possible to make a touch bar button that:

  1. Left clicks down at position relative to upper left corner of active window
  2. Drags to new location relative to upper left corner of active window over a duration of 5 seconds at constant speed
  3. Left clicks up?

I unfortunately don't know coding at all so couldn't make even a basic script. Any tips greatly appreciated! Thanka

Imprint | Privacy Policy