diff --git a/AltWinKeys-v0.1.exe b/Packaging/AltWin-HotKeys.exe similarity index 99% rename from AltWinKeys-v0.1.exe rename to Packaging/AltWin-HotKeys.exe index bcd9bf2..f764b10 100644 Binary files a/AltWinKeys-v0.1.exe and b/Packaging/AltWin-HotKeys.exe differ diff --git a/Packaging/AltWinHotKeys.aip b/Packaging/AltWinHotKeys.aip index 7af1228..f37a11e 100644 --- a/Packaging/AltWinHotKeys.aip +++ b/Packaging/AltWinHotKeys.aip @@ -6,7 +6,7 @@ - + @@ -17,7 +17,7 @@ - + @@ -51,7 +51,7 @@ - + diff --git a/Packaging/AltWinKeys-v0.1.exe b/Packaging/AltWinKeys-v0.1.exe deleted file mode 100644 index bcd9bf2..0000000 Binary files a/Packaging/AltWinKeys-v0.1.exe and /dev/null differ diff --git a/README.md b/README.md index 5ca7b20..5219207 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Download the [latest release](https://github.com/justcla/WindowHotKeys/releases/ ## Usage (Keyboard Shortcuts) -### Alt+Win = Move Window +### Move Window *(Alt+Win)* The following table lists the default shortcut combinations for **moving windows**. Keyboard Shortcut | Action @@ -40,7 +40,7 @@ Alt+Win + NumPad 7 | Move window to the Top Left Corner Alt+Win + NumPad 8 | Move window to the Top Edge Alt+Win + NumPad 9 | Move window to the Top Right Corner -### Alt+Win+Shift = Resize Window +### Resize Window *(Alt+Win+Shift)* The following table lists the default shortcut combinations for **resizing windows**. **Note:** Minor resize actions occur on the RIGHT and BOTTOM edges of the window. @@ -54,10 +54,16 @@ Alt+Win+Shift + Left | Resize window narrower | Ddecrease width Alt+Win+Shift + Right | Resize window wider | Increase width Alt+Win+Shift + PgUp | Resize window smaller | Decrease width and height Alt+Win+Shift + PgDn | Resize window larger | Increase width and height + +### Special Move/Resize commands +Keyboard Shortcut | Action | Description +--- | --- | --- **Major Resize shortcuts** | -Alt+Win+Shift + Enter | Resize to full extent of monitor | Max width and height of monitor +Alt+Win + Enter

Alt+Win+Shift + Enter | Resize to full extent of monitor | Max width and height of monitor Alt+Win+Shift + Home | Resize to three quarters of monitor size| 3/4 width and height of monitor -**Special Move/Resize commands** | +Alt+Win+Shift + Del | Resize to half the monitor size| 1/2 width and height of monitor +**Restore Size / Position** | +Alt+Win + BackSpace | Restore window to previous position (not size) Alt+Win+Shift + BackSpace | Restore window to previous size and position ## Technical details: diff --git a/Window Move HotKeys.ahk b/Window Move HotKeys.ahk index 8eb7f3e..00c07d6 100644 --- a/Window Move HotKeys.ahk +++ b/Window Move HotKeys.ahk @@ -276,6 +276,15 @@ NewH := Screen_Y * ResizeRatio ; three-quarters of window height WinMove, A, , , , NewW, NewH return +; Resize to half of the screen size +!+#Del:: +EnsureWindowIsRestored() +WinGetPos, WinX, WinY, WinW, WinH, A ; "A" to get the active window's pos. +NewW := Screen_X * (1/2) ; half of window width +NewH := Screen_Y * (1/2) ; half of window height +WinMove, A, , , , NewW, NewH +return + !#Enter:: !+#Enter:: ; Move and Resize window to full screen