Move cursor to center of active window with AutoHotKey
;Move cursor to center of windows after using ALT-TAB ~!Tab:: KeyWait, Alt KeyWait, Tab WinGetActiveStats, Title, Width, Height, X, Y Sleep 1250 MouseMove, Width / 2, Height / 2, 0 return ;Move cursor to center of active window with SHIFT+CTRL+C +^c:: WinGetActiveStats, Title, Width, Height, X, Y MouseMove, Width / 2, Height / 2, 0 Return
Comments