开发者

Determine the window under the cursor

开发者 https://www.devze.com 2023-03-18 10:23 出处:网络
Press Cmd + Shift + 4 + Space and start roaming around the screen. It determines which window I\'m over and highlights it. I suppose it asks every window about its size and position. How to do the sam

Press Cmd + Shift + 4 + Space and start roaming around the screen. It determines which window I'm over and highlights it. I suppose it asks every window about its size and position. How to do the same thing from my own Cocoa app? Determine the window under t开发者_StackOverflowhe cursor and ask about its different parameters? Thanks.


You're looking for the Quartz Window Services (CGWindow) API, specifically the function CGWindowListCopyWindowInfo().

0

精彩评论

暂无评论...
验证码 换一张
取 消