This file contains hidden or 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
#Requires AutoHotkey v2 | |
; SendMode Input | |
; centers current window without changing dimensions by pressing win + alt + up-arrow | |
#!Up::CenterActiveWindow() | |
CenterActiveWindow() | |
{ | |
; get the current monitor from the active window handle | |
NumPut("UInt", 40, buf := Buffer(40,0)) |