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
; centers current window without changing dimensions by pressing win + alt + up-arrow | |
#!Up::CenterActiveWindow() | |
CenterActiveWindow() | |
{ | |
; Get the window handle from active window | |
winHandle := WinExist("A") | |
; Get the current monitor from the active window handle | |
VarSetCapacity(monitorInfo, 40) | |
NumPut(40, monitorInfo) |