Quote:
Originally Posted by _dave_
I don't think that's sufficient unless you already know the window you want (or it's active). or maybe I'm missing something... I think the only way to do it with WinGetPos is to enumerate all windows and test them if x/y is within their rects?
Anyways, I got a function on my other computer GetIDFromPoint(x,y) that uses a couple DllCalls to achieve what I think you're asking, I'll post it later if you want. I sue it for may very very simple "stack & tile" setup, where I have one of my mouse buttons move a table in/out of the stack where in the tile depends if another table is already at a certain x/y - this way I don't have to keep track of where everything "should" be like StarsPlanner does.
This would be great!
Yeah, I've been looking through the help files and I guess it's just a weird overlooked part of ahk to not be able to choose an x,y location and get window info assuming it's not active.
Unless there is some function to get title of window at x,y which I hadn't been able to find.