The window below is positioned on the right edge of the screen. I want the mouse to go to A, click and hold and drag the window horizontally 2 cm to the right so that the right column of the window is no longer visible.
This is the initial position
And this should be the end position.
The KM macro does exactly the opposite. It moves the window to the top left.
BTT Clipboard Manager.kmmacros (4.1 KB)
Can someone help me please? Thank you very much.
Edit // This action moves the mouse to the right place and moves it 2 cm to the right. But the window does not come with it.
If you want, you can use a macro I built to gradually move the current front window to the right until the hotkey is released.
Download Macro(s): 08)[MG-WC] Front window- move right.kmmacros (3.3 KB)
- Macros are always disabled when imported into the Keyboard Maestro Editor.
- The user must ensure the macro is enabled.
- The user must also ensure the macro's parent macro-group is enabled.
- macOS 13.6
- Keyboard Maestro v10.2
Either way, simulating mouse click/drags to move a window is probably not the most efficient way to perform this task. You can use the Manipulate a Window action to move windows around, and you can set absolute coordinates in the action’s configurations so it always places the window exactly where you want.
Thank you very much Chris!
Your solution works ... and also not.
This window does not seem to be normal. As you can see there are always two windows active at the same time. In this case one Finder window and the other. This causes the wrong window to be moved.
Apart from that, what is this action for? Click and drag to should move a window from one position to another, no?
No idea why, but this seems to work perfectly
Maybe because it automatically detects the BTT window?
That action can be used in that way, but to move windows, generally the action I linked to in my previous comment is better suited.
Likely the issue is the window in question is not actually a “window”. What app is it in?