How do I find a window at a certain point on the screen for screenshot/screen-recording purposes?

前端 未结 2 1868
臣服心动
臣服心动 2021-01-14 21:05

I\'m looking for a way to do what the equivalent of WindowFromPoint and GetWindowRect do, in Carbon/Cocoa and X11.

WindowFromPoint - http://msdn.microsoft.com/en-us/

2条回答
  •  生来不讨喜
    2021-01-14 22:06

    To answer the X11 portion of this question: You can use XQueryPointer's child_return for similar functionality to WindowFromPont. XGetGeometry should get you the GetWindowRect information.

提交回复
热议问题