Suggerirei di utilizzare AutoHotkey .
Uno script di esempio che fa esattamente quello che hai chiesto era già stato fornito in una risposta a un'altra domanda .
Ecco il codice dello script:
#!Up::CenterActiveWindow() ; if win+alt+↑ is pressed
CenterActiveWindow()
{
; Get the window handle from de active window.
winHandle := WinExist("A")
VarSetCapacity(monitorInfo, 40)
NumPut(40, monitorInfo)
; Get the current monitor from the active window handle.
monitorHandle := DllCall("MonitorFromWindow", "uint", winHandle, "uint", 0x2)
DllCall("GetMonitorInfo", "uint", monitorHandle, "uint", &monitorInfo)
; Get WorkArea bounding coordinates of the current monitor.
A_Left := NumGet(monitorInfo, 20, "Int")
A_Top := NumGet(monitorInfo, 24, "Int")
A_Right := NumGet(monitorInfo, 28, "Int")
A_Bottom := NumGet(monitorInfo, 32, "Int")
; Calculate window coordinates.
winW := (A_Right - A_Left) * 0.5 ; Change the factor here to your desired width.
winH := A_Bottom
winX := A_Left + (winW / 2)
winY := A_Top
WinMove, A,, winX, winY, winW, winH
}
Ho apportato una leggera regolazione in modo che la parte inferiore della finestra non vada sotto la barra delle applicazioni e ho modificato windowWidthda 0,7 a 0,5.
modificare : ora funziona con più monitor e utilizza l'area di lavoro per i valori superiore e inferiore.
Per contro, WinSplit Revolution è stato sospeso e sostituito da un'app a pagamento chiamata MaxTo.
Oltre ad essere molto potente e che copre molti più casi d'uso, AutoHotkey è anche gratuito e open source.