Mouse drag until magnet is reached

Hi everyone.

Because every now and then the Universal Control loses its Display Arrangement I'm trying to create a macro for this. The only wall I'm hitting is that I don't want to drag my second Mac Display to a specific coordinate. System Settings… > Display > Arrangement has a magnet/snap on both bottom and top. I use all my displays aligned at bottom, as they physically are.

How can I make KM to drag it until it reaches that snap at bottom?

TIA

Hello @xattr,

I have this issue when using my iPad as a sidecar display. Every time my iPad closed, I had to make the adjustment so I created this:

Fix iPad alignment with Colossus (Sidecar) .kmmacros (12.1 KB)

Image of Macro:

Check this out and see if this helps with your customized adjustments.

KC