Skip to content

Commit

Permalink
[V] EDE 0.12.0
Browse files Browse the repository at this point in the history
#49: Minimize all windows on active monitor - Closes #49
  • Loading branch information
hoppfrosch committed Jan 12, 2016
2 parents 776adbb + 0448334 commit f9f09e9
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 12 deletions.
5 changes: 5 additions & 0 deletions ChangeLog.md
Expand Up @@ -3,6 +3,11 @@
(on Branch: **master**, since **2014-12-10**)

-----------------------------------------------------------------
* **EDE 0.12.0** (via Commit [5d9cf5d](https://github.com/hoppfrosch/AHK_Windy/commit/5d9cf5d0810807137cec29df592b6aa89d2f6fbc))
* [[#49](https://github.com/hoppfrosch/AHK_EDE/issues/49)](https://github.com/hoppfrosch/AHK_EDE/issues/49): Minimize all windows on active monitor - Closes #49
* **EDE 0.11.0** (via Commit [776adbb](https://github.com/hoppfrosch/AHK_Windy/commit/776adbb09446ceef26d7f411789134750612d2d4))
* [#47](https://github.com/hoppfrosch/AHK_EDE/issues/47): Refactor "Move Window to next monitor"
* [#48](https://github.com/hoppfrosch/AHK_EDE/issues/48): Enhanced Windows-Alignment method (Align to border)
* **EDE 0.10.0** (via Commit [0cd6c2c](https://github.com/hoppfrosch/AHK_Windy/commit/0cd6c2ccb9f0960dc39819af145ef28a2b57e508))
* [#44](https://github.com/hoppfrosch/AHK_EDE/issues/44): Made AHK_EDE using AHK_Windy

46 changes: 34 additions & 12 deletions EDE.ahk
Expand Up @@ -3,16 +3,16 @@
;#Warn LocalSameAsGlobal, Off
#SingleInstance force

#include %A_ScriptDir%
#include lib
#include %A_ScriptDir%\lib
#include TaskDialog.ahk
#include %A_ScriptDir%
#include lib\TT
#include JSON.ahk
#include %A_ScriptDir%\lib\TT
#include TT.ahk

#include <EDE_XMLConfig>
#include <Windy\Mousy>
#include <Windy\Windy>
#include <Windy\WindLy>
#include <Windy\MultiMony>
#include <Windy\Mony>

Expand Down Expand Up @@ -41,7 +41,7 @@ gEDE.State.Key.Previous := ""
gEDE.State.Key.Reprise := 0

gEDE.Info.App.Name := "EDE"
gEDE.Info.App.Version := "0.11.0"
gEDE.Info.App.Version := "0.12.0"

gEDE.Info.App.NameVersion := gEDE.Info.App.Name " V" gEDE.Info.App.Version

Expand Down Expand Up @@ -140,11 +140,12 @@ Loop 4 {
}
TT.Add(hwTab1,"Move/Resize active window","",1)
TT.Add(hwTab2,"Multi Monitor actions","",1)
TT.Add(hwTab3,"","",1)
TT.Add(hwTab3,"Single Monitor actions","",1)
TT.Add(hwTab4,"Misc","",1)

}

; --------------------------------------------------------------------------------------------------------------------
; Contents of Tab1
tabTmp := 1
Gui, %tabTmp%:Add, Picture, %pos_NP_DOT% 0x800000 glTab%tabTmp% HwndhwTab%tabTmp%_Dot vDot, %A_ScriptDir%\res\information-frame.ico
Expand Down Expand Up @@ -194,6 +195,13 @@ Gui, %tabTmp%:Add, Picture, %pos_NP_ENT% 0x800000 glTab%tabTmp% HwndhwTab%tabT
TT.Add(hwTab%tabTmp%_Ent, "Move mouse to next screen","",%tabTmp%)
Gui, %tabTmp%:Add, Picture, %pos_NP_ENT3% glTab%tabTmp% , %A_ScriptDir%\res\mouse--arrow.ico

; --------------------------------------------------------------------------------------------------------------------
; Contents of tab 3
tabTmp := 3
Gui, %tabTmp%:Add, Picture, %pos_NP_SUB% 0x800000 glTab%tabTmp% HwndhwTab%tabTmp%_Sub vSub, %A_ScriptDir%\res\arrow-in.ico
TT.Add(hwTab%tabTmp%_Sub,"Minimize all windows on current monitor","",%tabTmp%)

; --------------------------------------------------------------------------------------------------------------------
; Contents of tab 4
tabTmp := 4
Gui, %tabTmp%:Add, Picture, %pos_NP_SUB% 0x800000 glTab%tabTmp% HwndhwTab%tabTmp%_Sub vSub, %A_ScriptDir%\res\information-white.ico
Expand Down Expand Up @@ -455,11 +463,12 @@ Tab2(GuiControl) {
gEDE.State.WinList[0].monitorID := obj_mon.idNext
}
else if(gEDE.State.Key.Current == "Enter") {
HideGUI()
obj_mouse := new Mousy()
currMonId := obj_mouse.monitorID
obj_mon := new Mony(currMonId)
obj_mouse.monitorID := obj_mon.idNext
}
}
else {
NotYetImplemented()
HideGUI()
Expand All @@ -471,11 +480,22 @@ Tab3(GuiControl) {
Global gEDE
gEDE.State.Key.Previous := gEDE.State.Key.Current
gEDE.State.Key.Current := GuiControl

OutputDebug % "[EDE-Keypress] Tab: <" gEDE.State.Tab.Current.Id "> - Key: <" gEDE.State.Key.Current "> - Previous: <" gEDE.State.Key.Previous ">"

NotYetImplemented()
HideGUI()

if(gEDE.State.Key.Current == "Sub") {
HideGUI()
wL := new WindLy()
m := new Mousy()
list := wl.byMonitorId(m.monitorID)
for key, data in wl.list { ; access the window list via member variable
gEDE.State.WinList[data.hwnd].minimized := 1
}
}
else {
NotYetImplemented()
HideGUI()
}
return
}

Expand All @@ -488,7 +508,9 @@ Tab4(GuiControl) {

if (gEDE.State.Key.Current == "Sub") {
HideGUI()
TaskDialog(0, gEDE.Info.App.NameVersion " - About|hWnd: <" gEDE.State.WinList[0].hwnd ">|Title: <" gEDE.State.WinList[0].title ">`nGuiControl: <" GuiControl ">`n", "", 1, "INFO")
str := JSON.Dump(gEDE.State.WinList[0],2)
MsgBox % str
;TaskDialog(0, gEDE.Info.App.NameVersion " - About|hWnd: <" gEDE.State.WinList[0].hwnd ">|Title: <" gEDE.State.WinList[0].title ">`nGuiControl: <" GuiControl ">`n", "", 1, "INFO")
}
else if(gEDE.State.Key.Current == "1") {
LoadConfig()
Expand Down
42 changes: 42 additions & 0 deletions doc/AHK-EDE/docs/Alignment.md
@@ -0,0 +1,42 @@
#Windows Alignment within EDE ![AHK_EDE](img/AHK_EDE.png)

![This page is still under construction](img/Under_construction.png)

***EDE*** offers a broad functionality ***to align your active window on the current monitor***. The alignment functionality is
highly configurable and can be for example configured to mimic the Windows Aero-Snap functionality of using keys *WIN*+*LEFT* and *WIN*-*RIGHT* to move the window
around the monitor (but: EDE-Windows alignment only moves around the current monitor).

Windows alignment comprises positioning as well as resizing the window.

As it's a quite complex feature, the general concept is described first.

## General Concept

- The windows aligment in ***EDE*** is accessible on TAB1 (Opened via ![Left-WIN](img/Keys/Key-Win.png) + ![NUMPAD-1](img/Keys/Key-1.png)) and subsequently pressing one of the NUMPAD-Keys ![NUMPAD-1](img/Keys/Key-1.png), ![NUMPAD-2](img/Keys/Key-2.png), ![NUMPAD-3](img/Keys/Key-3.png), ![NUMPAD-4](img/Keys/Key-4.png), ![NUMPAD-5](img/Keys/Key-5.png), ![NUMPAD-6](img/Keys/Key-6.png), ![NUMPAD-7](img/Keys/Key-7.png), ![NUMPAD-8](img/Keys/Key-8.png), ![NUMPAD-9](img/Keys/Key-9.png).

- The NUMPAD-Keys above could be considered as a "compass".

Direction-Key | Direction | Description
--------------------------------|------------|---------------------------------------
![NUMPAD-1](img/Keys/Key-1.png) | South-West | Moves Window to the lower left corner of the current screen
![NUMPAD-2](img/Keys/Key-2.png) | South | Moves Window to the lower border of the current screen
![NUMPAD-3](img/Keys/Key-3.png) | South-East | Moves Window to the lower right corner of the current screen
![NUMPAD-4](img/Keys/Key-4.png) | West | Moves Window to the left border of the current screen
![NUMPAD-5](img/Keys/Key-5.png) | Center | Moves Window to the center of the current screen
![NUMPAD-6](img/Keys/Key-6.png) | East | Moves Window to the right border of the current screen
![NUMPAD-7](img/Keys/Key-7.png) | North-West | Moves Window to the upper left corner of the current screen
![NUMPAD-8](img/Keys/Key-8.png) | North | Moves Window to the upper border of the current screen
![NUMPAD-9](img/Keys/Key-9.png) | North-East | Moves Window to the upper right corner of the current screen

- For each direction key several destination positions/sizes can be configured ("Position configurations)).

- While TAB1 is active the direction-keys can be pressed repeatedly (either the same or a different direction key). This moves/resizes the current window on the current screen according to the associated position configuration. For example pressing direction-keys ![NUMPAD-1](img/Keys/Key-1.png)-![NUMPAD-1](img/Keys/Key-1.png) (while TAB1 is active) moves/resizes the window to the position/size defined in the second position configuration for this direction key.

- Each direction key may have an endless number of position configurations - repeatedly pressing the direction key (while TAB1 is active) cycles through the direction keys position configurations (if the last position configuration is used the next movement will go to the first position configuration).



----

This site is build using [mkdocs](http://mkdocs.org).

3 changes: 3 additions & 0 deletions doc/AHK-EDE/mkdocs.yml
@@ -1,4 +1,7 @@
site_name: EDE - Enhanced desktop experience
pages:
- [index.md, Home]
- [Alignment.md, Windows Alignment]

repo_url: https://github.com/hoppfrosch/AHK_EDE/

Expand Down

0 comments on commit f9f09e9

Please sign in to comment.