Skip to content

Commit

Permalink
v1.0.2 Added command to Resize to Half width and height
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Clareburt committed Jul 11, 2020
1 parent 6713c8c commit a492c99
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
Binary file renamed AltWinKeys-v0.1.exe → Packaging/AltWin-HotKeys.exe
Binary file not shown.
6 changes: 3 additions & 3 deletions Packaging/AltWinHotKeys.aip
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ROW Property="AI_IA_ENABLE" Value="1"/>
<ROW Property="AI_PREDEF_LCONDS_PROPS" Value="AI_DETECTED_ALL"/>
<ROW Property="ALLUSERS" Value="1" MultiBuildValue="DefaultBuild:"/>
<ROW Property="ARPCOMMENTS" Value="This installer database contains the logic and data required to install [|ProductName]." ValueLocId="*"/>
<ROW Property="ARPCOMMENTS" Value="Provides keyboard shortcuts to Move and Resize windows" ValueLocId="*"/>
<ROW Property="ARPHELPLINK" Value="https://github.com/justcla/WindowHotKeys/blob/master/README.md"/>
<ROW Property="ARPNOMODIFY" MultiBuildValue="DefaultBuild:1"/>
<ROW Property="ARPNOREPAIR" Value="1"/>
Expand All @@ -17,7 +17,7 @@
<ROW Property="ProductCode" Value="1033:{3BFF70B6-7373-457B-9CDA-ABFD41DC87DF} " Type="16"/>
<ROW Property="ProductLanguage" Value="1033"/>
<ROW Property="ProductName" Value="Alt+Win HotKeys"/>
<ROW Property="ProductVersion" Value="1.0.0" Type="32"/>
<ROW Property="ProductVersion" Value="1.0.2" Type="32"/>
<ROW Property="RUNAPPLICATION" Value="1" Type="4"/>
<ROW Property="SecureCustomProperties" Value="OLDPRODUCTS;AI_NEWERPRODUCTFOUND"/>
<ROW Property="UpgradeCode" Value="{ED42B1B5-3014-4135-BB12-5C58FFB8B478}"/>
Expand Down Expand Up @@ -51,7 +51,7 @@
<ATTRIBUTE name="CurrentFeature" value="MainFeature"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiFilesComponent">
<ROW File="AltWinKeysv0.1.exe" Component_="AltWinKeysv0.1.exe" FileName="ALTWIN~2.EXE|AltWin-HotKeys.exe" Attributes="0" SourcePath="AltWinKeys-v0.1.exe" SelfReg="false" DigSign="true"/>
<ROW File="AltWinKeysv0.1.exe" Component_="AltWinKeysv0.1.exe" FileName="ALTWIN~2.EXE|AltWin-HotKeys.exe" Attributes="0" SourcePath="AltWin-HotKeys.exe" SelfReg="false" DigSign="true"/>
<ROW File="InstallationReadme.txt" Component_="InstallationReadme.txt" FileName="INSTAL~1.TXT|Installation-Readme.txt" Attributes="0" SourcePath="Installation-Readme.txt" SelfReg="false"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.custcomp.MsiEmbeddedUIComponent">
Expand Down
Binary file removed Packaging/AltWinKeys-v0.1.exe
Binary file not shown.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand All @@ -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<br><br>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:
Expand Down
9 changes: 9 additions & 0 deletions Window Move HotKeys.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a492c99

Please sign in to comment.