Yes, the trick is to ensure the points are always the same position on the screen. I think I put a project together for this several months ago so you can search on the forum and if you can’t find it, I will see if I can either dig it up or do it again. It will take several translators
First Translator Click Down the mouse as outgoing action on whatever incoming MIDI message you want to use to trigger it.
Second translator will also monitor click down (same as first one) but instead will trigger a timer. For the sake of this discussion we will name in “Drag”. You probably want to put a small initial delay to give the click time but I don’t think it will be necessary.
Input Timer “Drag”. Here the output is a mouse move movement since all you did in the first translator was click down (without up), it will drag to the target X Y position you specify.
Another translator that fires on the the same input message (same as first translator) but fires on output another timer “Release”.
Then the release timer that actually does a “mouse up” action”
So in all you have 5 translators
1 )Input (say MIDI Note xx on channel yy velocity 127) Output Left mouse down
2) Input (same as one) output timer “Drag”
3) Input Timer Drag output move mouse to x y
4)Input Same as one output Timer “release” delay xx msec
5)Input Timer release output left mouse up.
Does this make sense?
Again, I think you you search on “mouse drag” you will find the project file. I will look too and if I find it I will post a link to it for you.
Bome Q&A Moderator and
Independent Bome Programming Consultant/Specialist