MACROS: WinMover - Rearrange Windows in Easy Halves and Quadrants, or Move to another Screen
This is a moderate reworking of an old group of macros I wrote in 2016--omg has it been SEVEN YEARS -- titled "MACRO: Move and Resize Windows In Any Quadrant, Half, or Full Screen". There are many examples on the forum of how you can move and arrange windows with the Manipulate a Window Action. Most of these macros use numeric hotkeys or similar; however, I prefer a more visual (spatial?) system for moving windows, using a hotkey + arrow combinations to represent the desired window positioning.
These macros work by relying on an (ugly) set of nested If Then Else Actions which check for various combinations of Key conditions.
WinMover is triggered with ββ₯β
+ any combination of arrow keys.
For example:
ββ₯β + β
= left column
ββ₯β + ββ
= top left quadrant of the screen
ββ₯β + ββ
= bottom right quadrant of the screen
ββ₯β + ββ
= full screen
ββ₯β + ββ
= full screen
And so forth! The order in which you press the arrows does not matter, since there are four separate macros, each watching for one of the arrow keys, which may be pressed fractions of a second before the other arrows as you define the βshapeβ of your window movement.
WinMover Macros v1.kmmacros (52.3 KB)
(This file contains a macro group titled WinMover. The group and its macros are uploaded in a disabled state. You must enable the macros and the group before use.)
I have also included two "Throw" macros, which are triggered with β₯β + β
or β₯β + β
to βthrowβ a window to the left or right screen while maintaining its current shape and position.
You may need to adjust the magenta colored actions based on the arrangement of your monitors. You can also combine them into one macro which acts as a toggle, like Peterβs example here, which I used to create my version:
Iβve also added a timer of sorts. Triggering the Window Thrower once will move the window to the other screen while maintaining position. Triggering it again within 0.5 seconds will make that window full screen, so rather than βthrowingβ with one hotkey, and full screening with another hotkey, I can simply tap the arrow key a second time like so: β₯β + β
,β