A window tiler?

I need to write and application that can find out which windows are open on my MAC.
Give that list I need to position and size my windows.
Any help in the form of APIs Xojo can access would be apprecieated.

Something that comes to mind though is how could I ‘invoke’ this application feature to do so.


or windows…

There are APIs in Windows to know which windows are displayed (all apps), and with their handle one can move them with SetWindowPos(). I have not worked on that for a couple years, so I don’t remember off hand what are the system calls. At any rate, this is quite possible.

I believe GetNextWindow() can tell you that.

GetTopWindow() gets the handle of the front window. You get that one and iterate down to the lower windows in the z-order with GetNextWindow.