Skip to content

Commit

Permalink
Fixed full-screen resize to work on multi-monitors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Clareburt committed Jul 14, 2020
1 parent a4adb85 commit ef91561
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Window Move HotKeys.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,13 @@ return
!+#Enter::
; Move and Resize window to full screen
WinGetPos, WinX, WinY, WinW, WinH, A ; "A" to get the active window's pos.
NewH := Screen_Y ; Set the window width equal to the width of the screen less the taskbar
NewW := Screen_X ; Set the window height equal to the height of the screen
WinMove, A, , 0, 0, NewW, NewH
WinNum := GetWindowNumber()
SysGet, Mon, MonitorWorkArea, %WinNum%
NewX := MonLeft
NewY := MonTop
NewH := MonBottom - MonTop ; Set the window height equal to the height of the screen
NewW := MonRight - MonLeft ; Set the window width equal to the width of the screen less the taskbar
WinMove, A, , NewX, NewY, NewW, NewH
return

!#Backspace::
Expand Down

0 comments on commit ef91561

Please sign in to comment.