
HTHawks
9 discussion posts
I am looking for some pointers/tips for BFS (C# script) commands to explore for determining the right and bottom edges of a monitor when executing some "cascade windows" commands.
Without getting into too many details, essentially I may wish to resize and then cascade "too many" windows at a time ...running out of room, they will just "keep going" off screen.
The gist: I target a specified application set of windows, for instance Mozilla Firefox, on a specified monitor, iterate and set size and location for each one in turn.
Currently I set a limit on the number of windows so it doesn't get out of hand.
---
I am wondering if someone can recommend some BFS commands to explore that will help indicate the Right and Bottom Screen Edges of a targetted monitor ...specifically when a left or right window edge touches or overlaps that screen edge after moving a window, so I can then set some other action.
Any help would be appreciated.
I am running Windows 7 with DF Version 9.9 ...so I do have some code limitations. That said, any pointers you may have, regardless of newer platform, would be helpful.
Thank you.
Twohawks

HTHawks
9 discussion posts
Oh cool -thank you very much. I know this is a late reply... I know I came back here many times look for replies, but never saw any to any of my posts ...and now I am seeing them ...go figure.
Anymonday, thanks very much for your help. This should fit with what I was looking for!
R Twohawks
Update: This did the trick - thanks very much Thomas!
Jan 25, 2025 (modified Jan 26, 2025)
•
#3