Skip to content

2.0.0 — one portable exe, 64 MB smaller

Choose a tag to compare

@Devail1 Devail1 released this 04 Aug 08:45
· 38 commits to main since this release

A ground-up rewrite. Same app, one portable executable, 64 MB → 1.23 MB.

Version 1.x was an Electron application: 1,650 lines of TypeScript and React, seven runtime dependencies, and a bundled Chromium. 2.0.0 is 454 lines of AutoHotkey v2 with no dependencies and nothing to install — Electron only ever existed to draw the settings window.

Fixed

  • Wrong size on secondary monitors. Sizes were calculated from the primary monitor's resolution while being centred on the current one, so percentages were wrong on any monitor with a different resolution.
  • Windows overflowed the taskbar. Sizing used full screen dimensions while centring used the work area.
  • The first size preset was unreachable. The cycle started at the second preset.
  • #12 — "Access denied" on Task Manager and other elevated windows. A program running as administrator can't be moved by one that isn't. The app now explains this and offers Restart as administrator from the tray menu, instead of showing a raw error.
  • Windows that ignore the requested size are now centred correctly. A window enforcing a minimum size kept the requested top-left corner and ended up off-centre.

Changed

  • Settings live in settings.ini beside the executable, so the app is genuinely portable.
  • The settings window is one screen — the Center and Resize tabs are gone.
  • Hotkeys are set by pressing the keys, not by typing AutoHotkey syntax.
  • Added Reset to restore defaults, and Check for updates in the tray menu.

Notes

  • Windows-key shortcuts can't be captured by the hotkey field. Set those by editing settings.ini (Center=#Up); a shortcut set that way is preserved if you later open and save Settings.
  • The executable is unsigned, so Windows may show a SmartScreen prompt on first run. A few antivirus engines flag unsigned AutoHotkey builds heuristically — the full source is in this repository and builds with build\build.ps1.

SHA-256 b2adcd403b945fbbb14d7c997cdd820608a14ea712974965e7a6d6865290dd65
Both attached files are the same binary; Window-Center-Resize.exe keeps existing download links working.