开发者

OSX: Get application windows + bounds

开发者 https://www.devze.com 2022-12-19 00:22 出处:网络
Is there a way to get the list of windows from another application and their bounds. E.g. using F-Script or obj-c or any other way (except AppleScript) to access the window contents of a开发者_C百科no

Is there a way to get the list of windows from another application and their bounds. E.g. using F-Script or obj-c or any other way (except AppleScript) to access the window contents of a开发者_C百科nother (any other) Cocoa-based application and possibly modify it?

I am talking about 1) accessing the data (as http://the.layersapp.com/ does) and 2) modifying it

...externally


See these Stack Overflow questions: Getting the main window of other app, getting the unique ID of another app in OS X. Basically, the two APIs you can use is Accessibility and CGWindow.

0

精彩评论

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