Hi
I can't get the mouse actions to work properly. The mouse position always goes to x=0/y=0 and I can't change it to pick up the current position as I've seen in other examples (the settings does not allow for ignoring x/y and putting a "current position" action before the action doesn't help. I'd like to program the sustain pedal to control or command-drag the mouse from the current cursor position
- Christian Scheuer @chrscheuer2020-08-14 10:25:51.654Z
Hi Patrick,
Can you tell us more about what you're trying to achieve and show us a screenshot of what you tried?
When you say you'd like the sustain pedal to command-drag the mouse, what do you mean by that? What exactly should happen when you press down the control pedal? Should it just simulate a command key press down? Or both a command key press down and a mouse click down? Or, should it also actually simulate a drag of the mouse (in which case, where to?)
If we know your full intended workflow it'll be easier to help.
Christian Scheuer @chrscheuer2020-08-14 11:59:42.752Z
In terms of a more direct response to your question.. If you're using macros, you need to drag the orange "position" output property from Get Mouse Position onto the "Position" input field of the Mouse Down action, like in the following image.
You'd also need to click the "wheel" in the Mouse Down event to set "Hold Command" to Yes:Christian Scheuer @chrscheuer2020-08-14 12:00:13.996Z
As a script, this would be the equivalent of:
const position = sf.mouse.getPosition().position; sf.mouse.down({ position: position, isCommand: true, });
Christian Scheuer @chrscheuer2020-08-14 12:01:56.541Z
And to clarify; what these two commands do, is to first get the current mouse position, then simulate a mouse down event (with no mouse up, as I understood you want this to allow for dragging from the current position) while having the Command modifer key held down.
- PIn reply toPatrick_Boullenger⬆:Patrick Boullenger @Patrick_Boullenger
Hi Christian
I'm trying to use two different sustain pedals as midi-triggers for 2 different command which would be: a. control-click/drag (and ultimately release) b. command-click/drag (and ultimately release). I would use a. in Pro Tools for moving clips between track with stepping on the pedal and just moving the mouse (not clicking) and b. for adding and moving clip-gain without constant mouse clicking.
I gues I also would have to add a sustain-pedal up command for releasing the mouse? (or maybe alternating mouse clicks if that's possible).
But the first problem is that unlike in your picture, I can't choose the position. It is always in x=0/y=0 (see picture).
Chris Shaw @Chris_Shaw2020-08-15 17:04:15.089Z
For the position, you have to click and drag the orange [position] square/icon at the bottom of the Get Mouse Position macro into the Mouse Down macro.
Position Drag.mov (532.52 kB)
- PPatrick Boullenger @Patrick_Boullenger
Thanks Chris
Oh, they are draggable.... Live and learn :-)