I currently have a function that regularly saves the window positions so I can quickly restore, as well as restores when I get through the lock screen. However I have a docking station that occasionally hiccups, and Windows very nicely moves all the windows to Y coordinate 0, then when it comes back, at some point the window positions are saved and I have to drag everything back.
What I want to do is add a check to my scripted function that if it finds a certain number of windows with Y 0, don't save the positions, rather restore.
I've been looking through the samples and object documentation and I don't see anything that demonstrates getting the X/Y coordinates. (Setting, yes, I contributed a sample script a few years ago). I also haven't seen a list of the properties available, but I'm guessing that that is a Windows system thing (I'm a mainframer, so no practical experience).
All input appreciated.
Cheers,
Ray
Hi Ray,
You can use this line to grab the Y value of a window handle:
int y = BFS.Window.GetBounds(windowHandle).Y
Hope that helps!