Is it possible to generate a mouse click (or mouse double click) using the current mouse position? For example I have a transition already selected in Adobe Premiere and I want to edit the duration.
- Press Streamdeck button to trigger
- Double click at current mouse location
- enter preset value (eg 4)
- simulate press enter or click ok
- Christian Scheuer @chrscheuer2021-01-29 12:00:27.519Z
Hi Andrew,
Yes you can :)
In a macro, you can use the Get Mouse Position action with the Mouse Double Click action, like this:
First, add the two actions, then drag the orange "position" output from Get Mouse Position over the Position property on Mouse Double Click.
Converted to a script, this becomes:
const position = sf.mouse.getPosition().position; sf.mouse.doubleClick({ position: position, });
Christian Scheuer @chrscheuer2021-01-29 12:01:28.745Z
Your full macro would look something like this:
Christian Scheuer @chrscheuer2021-01-29 12:02:23.961Z
Given your description, this would be a great candidate to turn into a template, so you won't have to copy/paste this for each of the duration lengths you want to set up.
To learn how to work with Templates & Presets, please see this webinar:
https://www.facebook.com/soundflow.org/videos/633065107406660
- AIn reply toAndrew_Sherman⬆:Andrew Sherman @Andrew_Sherman
Excellent, thank you