Get help with using AutoHotkey and its commands and hotkeys
2 posts • Page 1 of 1
New to this scripting process and am look for help in creating a script to center any window on the desktop. Window may or may not be active. Any help will be grateful.
Code: Select all
F1:: WinTitle = A SysGet, Display_, Monitor, 1 WinGetPos,,, WinW, WinH, % WinTitle WinMove, % WinTitle,, % Floor( (Display_Right/2)-(WinW/2) ), % Floor( (Display_Bottom/2)-(WinH/2) ) return