At first glance what this script doesn't seem particularly powerful, it does two things:
- Allows the user to warp the cursor to the center of different zones, activating the snapped window directly under the cursor (by default by pressing Win-Shift-<number>).
- Moves all resizeable windows activated into the zone containing the cursor by default (toggleable on a per window basis with Win-Shift-F, or preventable by Ctrl-<mouse-button>).
However, it instantly, and dramatically reduces the amount of window management involved in running Microsoft Windows. With practice and mindfulness it can give a productivity boost, and encourage a more elegant arrangement of windows.
To use this script effectively you must:
- Install Microsoft PowerToys.
- Configure at least one custom layouts using the FancyZones editor (ideally several bound to Win-Ctrl-Alt-<number>).
- Optionally turn on the Move windows based on Relative postion in the settings (to move windows between zones with Win-).
- Run the script with AutoHotkey v2 64bit.
Compile using ahk2exe. To run for administrator windows run as administrator.
To run automatically go to:
- Task Scheduler -> Action -> Create Task
- Input the Location and Name of the script
- Run with highest privileges -> On (if you want the warp to also work for windows run as administrator.)
- Trigger -> New... -> On Workstation Unlock
- Settings -> Stop the task if runs for longer than. -> Off
- Ok
