hoppfrosch / AHK_Windy

Toolbox to operate on windows
http://hoppfrosch.github.io/AHK_Windy
Other
23 stars 8 forks source link

WindLy: Inverse of current list #32

Closed hoppfrosch closed 9 years ago

hoppfrosch commented 9 years ago

Implement method inverse() to invert the current list: create a new list that contains all elements which have not been part of the previous list

hoppfrosch commented 9 years ago

This has to be implemented on base of the list of all currently opened windows:

newList := actualList - workingList

hoppfrosch commented 9 years ago

Withr Implementoation of method <difference()> within issue #27 this could be easily accomplished.

x := new WindLy() x.Snapshot() ; All current windows y:= new WindLy() y.byMonitorId(2) ; Example: take all windows from screen 2 ; Create difference of WindLy instance x and WindLy instance y x.difference(y) ; ; x contains the difference now (i.e inverse from List 2 - i.e. all windows on screen 1)