A highly responsive AutoHotkey window management script focused on smooth, low-latency dragging, snapping, and resizing using the Left Windows modifier key.
- Hold LWin + Left Mouse Button
- Drag windows freely with buttery-smooth motion across screens
- Automatically restores maximized windows before moving
Snapping triggers when you release the mouse:
- ⬆ Top edge → Maximize
- ⬇ Bottom edge → Minimize
- ⬅ Left edge → Snap left half
- ➡ Right edge → Snap right half
Supports multi-monitor setups.
- LWin + Middle Mouse Button
- Closes the window under cursor
- Safely ignores system UI (Start Menu, Search, taskbar)
- LWin + Right Mouse Button
- Uses Windows built-in resize system for smooth visuals
- Fully compatible with Snap layouts, DPI scaling, and multi-monitor setups
winDrag-preview.mp4
You can tweak behavior by using the GUI Settings in the tray icon.
- Hold LWin + drag → move window
- Drag to screen edge → release → snap action
- LWin + Right Click → resize
- LWin + Middle Click → close window (or minimize)
You have two options:
-
Precompiled version: Download and run
winDrag.exe, no installation required. Download latest release -
Script version: Download
winDrag.ahkand run it with AutoHotkey v1.1+ Recommended for advanced users who want to edit the script.
To launch the script automatically at startup:
-
Press
Win + R -
Type:
shell:startup -
Place a shortcut of
winDrag.ahkorwinDrag.exein that folder
If you want the script to interact with applications running as Administrator, you might need to run the script with elevated privileges.