This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; When Win+Shift+Up is pressed, resize the active window to be 75% of the screen width | |
; and centre it. Useful for widescreen resolutions >= 1080p, but uses the resolution | |
; of the primary monitor. | |
#+Up:: | |
SysGet, BoundingCoordinates, MonitorWorkArea | |
ResolutionWidth := BoundingCoordinatesRight - BoundingCoordinatesLeft | |
ResolutionHeight := BoundingCoordinatesBottom - BoundingCoordinatesTop |