Skip to content

Commit

Permalink
Merge branch 'develop' into feature/#38-WindInfy
Browse files Browse the repository at this point in the history
  • Loading branch information
hoppfrosch committed Dec 23, 2015
2 parents b743e62 + 965c696 commit decb3db
Show file tree
Hide file tree
Showing 14 changed files with 481 additions and 448 deletions.
2 changes: 1 addition & 1 deletion Examples/WindLy/Windly_Demo01_Basic.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ for key, data in x.Snapshot() { ; access the window list directly by function c
}

OutputDebug % "******** removeNonExisting *********************************************************************"
MsgBox % "Close any window and watch, if the widiw is removed from the list"
MsgBox % "Close any window and watch, if the window is removed from the list"
x.removeNonExisting()

OutputDebug % "******** On Monitor 1 *************************************************************************"
Expand Down
33 changes: 33 additions & 0 deletions Examples/WindLy/Windly_Demo05_symmetricdifference.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#include %A_ScriptDir%\..\..\lib\Windy
#include WindLy.ahk
#include Windy.ahk

OutputDebug % "******** All windows on monitor 1 ***********************************************************"
x := new WindLy()
x.byMonitorId(1)
for key, data in x.list {
OutputDebug % " " key ": " data.hwnd ": " data.title " (" key ")"
}

OutputDebug % "******** All windows on monitor 2 ***********************************************************"
y:= new WindLy()
y.byMonitorId(2)
for key, data in x.list { ; As y is manipulated within loop, we have to use a list-clone to iterate over
i := i + 1
if (i < 2) {
y.insert(data)
}
}
for key, data in y.list {
OutputDebug % " " key ": " data.hwnd ": " data.title " (" key ")"
}

OutputDebug % "############## SET-Operation SYMMETRICDIFFERENCE: WindLy.symmetricDifference() ##################"
; Create difference of WindLy instance x and WindLy instance y
x.symmetricDifference(y) ; y is removed from x - the result is stored in x again
OutputDebug % "******** WindLy After Union *******************************************************************"
for key, data in x.list {
OutputDebug % " " key ": " data.hwnd ": " data.title " (" key ")"
}

ExitApp
125 changes: 63 additions & 62 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,62 +1,63 @@
[![Stories in Ready](https://badge.waffle.io/hoppfrosch/AHK_Windy.png?label=ready&title=Ready)](https://waffle.io/hoppfrosch/AHK_Windy)
# AHK-Windy - Tools to operate on windows

Functionality for easier work with mouse and windows on desktop. Multi-Monitor support is also provided ...

Documentation is available on [gh_pages](http://hoppfrosch.github.io/AHK_Windy)

**Author**: [hoppfrosch@gmx.de](mailto:hoppfrosch@gmx.de)

----------
## Credits

- [Chris](http://www.autohotkey.com/board/user/2-chris/)
- [AutoHotkey 1.0](http://www.autohotkey.com/)
- [Lexikos](http://www.autohotkey.com/board/user/2446-lexikos/)
- for taking up the development on [AutoHotkey](http://l.autohotkey.net/) (aka. AHK_L)
- [WindowPad](http://http://www.autohotkey.com/board/topic/19990-windowpad-window-moving-tool) as **main inspiration**

### Ideas/Implementations as Input
- [Bkid](http://ahkscript.org/boards/memberlist.php?mode=viewprofile&u=55)
- [Identify monitor numbers with IDMonitors()](http://http://ahkscript.org/boards/viewtopic.php?f=6&t=3761&p=19836)
- [joedf](http://ahkscript.org/boards/memberlist.php?mode=viewprofile&u=55)
- [Smart WinFade](http://ahkscript.org/boards/viewtopic.php?f=6&t=512)
- [just me](https://github.com/AHK-just-me)
- [GUI Constants](https://github.com/AHK-just-me/AHK_Gui_Constants)
- Function [API_GetWindowInfo()](http://www.autohotkey.com/board/topic/69254-func-api-getwindowinfo-ahk-l/)
- [MDMF - Multiple Display Monitor Functions](http://ahkscript.org/boards/viewtopic.php?f=6&t=4606)
- [majkinetor](http://www.autohotkey.com/board/user/1763-majkinetor/)
- [Forms-Framework](https://github.com/maul-esel/FormsFramework)
- [ManaUser](http://www.autohotkey.com/board/user/3558-manauser/)
- Function `__isWindow(`) - taken from [AppsKeys](http://www.autohotkey.com/board/topic/25393-appskeys-a-suite-of-simple-utility-hotkeys/)
- [maul-esel](https://github.com/maul-esel)
- porting [Forms Framework](https://github.com/maul-esel/FormsFramework) to AHK_L
- [MasterFocus](https://github.com/MasterFocus)
- Function [RandomBezier](https://github.com/MasterFocus/AutoHotkey/tree/master/Functions/RandomBezier) - moving mouse on a random path (bezier curve)
- [Uberi](http://www.autohotkey.com/board/user/12435-uberi/)
- [Yunit-Framework](https://github.com/Uberi/Yunit)
- **and to everyone I might have forgotten**

### Bugfixes
- [WinSet, Transparent fails on AHK GUI -caption ](http://www.autohotkey.com/board/topic/67874-winset-transparent-fails-on-ahk-gui-caption/)

### More Inspiration taken from ###

- [WindowPad](http://http://www.autohotkey.com/board/topic/19990-windowpad-window-moving-tool)/[WindowPadX](https://github.com/hoppfrosch/WindowPadX) - free - based on AutoHotkey as well
- [WindowMenuPlus](http://www.moo0.com/?top=http://www.moo0.com/software/WindowMenuPlus/) - Free (Non-Commercial Use Only)
- [WindowSpace](http://www.ntwind.com/software/windowspace.html) - commercial
- [Winsplit-Revolution](http://winsplit-revolution.com/) - Freeware

### Used libraries
- [Coco](https://gist.github.com/cocobelgica)
- [SerDes](https://github.com/cocobelgica/AutoHotkey-SerDes)-Function (Serialize / de-serialize an AutoHotkey object structure)
- [Uberi](http://www.autohotkey.com/board/user/12435-uberi/)
- [Yunit-Framework](https://github.com/Uberi/Yunit)
- **and to everyone I might have forgotten**


### History

This project was split of [AHK_EDE](https://github.com/hoppfrosch/AHK_EDE/).

ChangeLog is available [here](https://github.com/hoppfrosch/AHK_Windy/blob/master/ChangeLog.md)
# AHK-Windy - Tools to operate on windows [![AutoHotkey](https://img.shields.io/badge/Language-AutoHotkey-yellowgreen.svg)](https://autohotkey.com/) ![](https://img.shields.io/badge/State-Stable-green.svg)

Functionality for easier work with mouse and windows on desktop. Multi-Monitor support is also provided ...

Documentation is available on [gh_pages](http://hoppfrosch.github.io/AHK_Windy)

**Author**: [hoppfrosch@gmx.de](mailto:hoppfrosch@gmx.de)

----------
**Issues**: [![Stories in Backlog](https://badge.waffle.io/hoppfrosch/AHK_Windy.svg?label=backlog&title=Backlog)](http://waffle.io/hoppfrosch/AHK_Windy) [![Stories in Ready](https://badge.waffle.io/hoppfrosch/AHK_Windy.svg?label=ready&title=Ready)](http://waffle.io/hoppfrosch/AHK_Windy) [![Stories in Progress](https://badge.waffle.io/hoppfrosch/AHK_Windy.svg?label=In%20Progress&title=In%20Progress)](http://waffle.io/hoppfrosch/AHK_Windy) [![Stories in Done](https://badge.waffle.io/hoppfrosch/AHK_Windy.svg?label=done&title=Done)](http://waffle.io/hoppfrosch/AHK_Windy)
----------
## Credits

- [Chris](http://www.autohotkey.com/board/user/2-chris/)
- [AutoHotkey 1.0](http://www.autohotkey.com/)
- [Lexikos](http://www.autohotkey.com/board/user/2446-lexikos/)
- for taking up the development on [AutoHotkey](http://l.autohotkey.net/) (aka. AHK_L)
- [WindowPad](http://http://www.autohotkey.com/board/topic/19990-windowpad-window-moving-tool) as **main inspiration**

### Ideas/Implementations as Input
- [Bkid](http://ahkscript.org/boards/memberlist.php?mode=viewprofile&u=55)
- [Identify monitor numbers with IDMonitors()](http://http://ahkscript.org/boards/viewtopic.php?f=6&t=3761&p=19836)
- [joedf](http://ahkscript.org/boards/memberlist.php?mode=viewprofile&u=55)
- [Smart WinFade](http://ahkscript.org/boards/viewtopic.php?f=6&t=512)
- [just me](https://github.com/AHK-just-me)
- [GUI Constants](https://github.com/AHK-just-me/AHK_Gui_Constants)
- Function [API_GetWindowInfo()](http://www.autohotkey.com/board/topic/69254-func-api-getwindowinfo-ahk-l/)
- [MDMF - Multiple Display Monitor Functions](http://ahkscript.org/boards/viewtopic.php?f=6&t=4606)
- [majkinetor](http://www.autohotkey.com/board/user/1763-majkinetor/)
- [Forms-Framework](https://github.com/maul-esel/FormsFramework)
- [ManaUser](http://www.autohotkey.com/board/user/3558-manauser/)
- Function `__isWindow(`) - taken from [AppsKeys](http://www.autohotkey.com/board/topic/25393-appskeys-a-suite-of-simple-utility-hotkeys/)
- [maul-esel](https://github.com/maul-esel)
- porting [Forms Framework](https://github.com/maul-esel/FormsFramework) to AHK_L
- [MasterFocus](https://github.com/MasterFocus)
- Function [RandomBezier](https://github.com/MasterFocus/AutoHotkey/tree/master/Functions/RandomBezier) - moving mouse on a random path (bezier curve)
- [Uberi](http://www.autohotkey.com/board/user/12435-uberi/)
- [Yunit-Framework](https://github.com/Uberi/Yunit)
- **and to everyone I might have forgotten**

### Bugfixes
- [WinSet, Transparent fails on AHK GUI -caption ](http://www.autohotkey.com/board/topic/67874-winset-transparent-fails-on-ahk-gui-caption/)

### More Inspiration taken from ###

- [WindowPad](http://http://www.autohotkey.com/board/topic/19990-windowpad-window-moving-tool)/[WindowPadX](https://github.com/hoppfrosch/WindowPadX) - free - based on AutoHotkey as well
- [WindowMenuPlus](http://www.moo0.com/?top=http://www.moo0.com/software/WindowMenuPlus/) - Free (Non-Commercial Use Only)
- [WindowSpace](http://www.ntwind.com/software/windowspace.html) - commercial
- [Winsplit-Revolution](http://winsplit-revolution.com/) - Freeware

### Used libraries
- [Coco](https://gist.github.com/cocobelgica)
- [SerDes](https://github.com/cocobelgica/AutoHotkey-SerDes)-Function (Serialize / de-serialize an AutoHotkey object structure)
- [Uberi](http://www.autohotkey.com/board/user/12435-uberi/)
- [Yunit-Framework](https://github.com/Uberi/Yunit)
- **and to everyone I might have forgotten**


### History

This project was split of [AHK_EDE](https://github.com/hoppfrosch/AHK_EDE/).

ChangeLog is available [here](https://github.com/hoppfrosch/AHK_Windy/blob/master/ChangeLog.md)
2 changes: 1 addition & 1 deletion YUnit_Recty.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#Warn All
#Warn LocalSameAsGlobal, Off

ReferenceVersion := "0.3.0"
ReferenceVersion := "0.3.1"

Yunit.Use(YunitStdOut, YunitWindow).Test(CompareTestSuite, MiscTestSuite)
Return
Expand Down
12 changes: 6 additions & 6 deletions YUnit_Windy.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -714,16 +714,16 @@ class MiscTestSuite {
OutputDebug % "<<<<[" A_ThisFunc "]<<<<<"
}

Resizeable() {
Resizable() {
OutputDebug % ">>>>>[" A_ThisFunc "]>>>>>"
OutputDebug % "...[" A_ThisFunc "]> 1"
Yunit.assert( this.obj.resizeable == 1)
Yunit.assert( this.obj.resizable == 1)
OutputDebug % "...[" A_ThisFunc "]> 0"
this.obj.resizeable := 0
Yunit.assert( this.obj.resizeable == 0)
this.obj.resizable := 0
Yunit.assert( this.obj.resizable == 0)
OutputDebug % "...[" A_ThisFunc "]> toggle"
this.obj.resizeable := !this.obj.resizeable
Yunit.assert( this.obj.resizeable == 1)
this.obj.resizable := !this.obj.resizable
Yunit.assert( this.obj.resizable == 1)
OutputDebug % "<<<<[" A_ThisFunc "]<<<<<"
sleep, 500
}
Expand Down
4 changes: 2 additions & 2 deletions _build/mkDoc.bat
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ copy ..\lib\Windy\Windy.ahk %WORK%
copy ..\lib\Windy\WindLy.ahk %WORK%

::path to the natural doc folder
SET NDPATH=D:\Portable\PortableApps\AutoHotkey\App\Tools\NaturalDocs\NaturalDocs
SET NDPATH=d:\Usr\programme\NaturalDocs\

pushd %WORK%

Expand All @@ -30,7 +30,7 @@ mkdir "%ROOT%\%DOC%\_ndProj" 2>nul
pushd "%NDPATH%"
if exist "%ROOT%\images" SET IMG=-img "%ROOT%\images"

call NaturalDocs.bat -i "%ROOT%" -o HTML "%ROOT%\%DOC%" -p "%ROOT%\%DOC%\_ndProj" %IMG%
call NaturalDocs.exe -i "%ROOT%" -o HTML "%ROOT%\%DOC%" -p "%ROOT%\%DOC%\_ndProj" %IMG%

popd

Expand Down
8 changes: 4 additions & 4 deletions lib/Windy.ahk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Title: _ Windy, v0.15.0
Title: Windy, v0.15.3
Windy provides a collection of classes, which allow a class based approach of handling windows, monitors, etc.
Expand All @@ -12,8 +12,8 @@
* <Windy at http://hoppfrosch.github.io/AHK_Windy/files/Windy-ahk.html> - Windows
* <WindLy at http://hoppfrosch.github.io/AHK_Windy/files/WindLy-ahk.html> - Collection (List) of Windows
Author(s):
<hoppfrosch at hoppfrosch@gmx.de>
Authors:
<hoppfrosch at hoppfrosch@gmx.de>: Original
About: License
This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See <WTFPL at http://www.wtfpl.net/> for more details.
Expand All @@ -31,4 +31,4 @@
#include Windy.ahk


Version := "0.15.2"
Version := "0.15.3"

0 comments on commit decb3db

Please sign in to comment.