Move the cursor to absolute X/Y using Macros

I have three displays and using Mac. I have a shortkey to switch desktops on the active monitor (where cursor is) which is quite handy. Now if I want to switch desktops on the other two displays I have to either manually move the cursor to those displays and the use my shortkey or find a way to jump the cursor to absolute x/y positions using macros. Is there any Macros that can help me with this?

Or any other idea that I can quickly move cursor to a position. The reason that adding relative x/y is not helpful is because, sometime my cursor might be in the most right display and I want to move it to the most left display. So relative x/y inc/dec is not really helpful.

Thanks.

No. The mouse usb interface reports deltas, not absolute positions.

The best you can do is to move by some absurdly high distance (say -10000, -10000) to a corner (say 0,0) and then relative jump from there to your “absolute” position…

But that can be troublesome, as operating systems routinely process mouse outputs (sensitivity, acceleration curve, smoothing the movement, attempts to recognize and suppress mous jumps…).

1 Like

Gotcha. Added +9999 and -9999. 10000 not allowed. Seems it does the job. I have to execute the macro to and up what I want, but it’s enough (2-3 times).

Thanks for the suggestion.

You know you can add the same action multiple times into one macro as well as insert some delays between the actions if needed, right? :wink:

Also should be possible to enter bigger numbers via the macro commands - the actual limit is most likely 16 bit int, which is some ±32000…

3 Likes

Never thought 10,000 wouldn’t be enough. Should we bump the limit to ±32,000?

No strong feelings about that from me. It is a niche scenario, and easthetics wise, 9999 makes just as much sense as providing the actual range…