Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

zarchasmpgmr's profile on WallpaperFusion.com
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
Jul 14, 2021  • #1
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
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!
Jul 15, 2021  • #2
zarchasmpgmr's profile on WallpaperFusion.com
8) Thanks! That's perfect!
Jul 28, 2021  • #3
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)