A
A
Anatoly2018-12-14 00:55:20
macOS
Anatoly, 2018-12-14 00:55:20

How to programmatically recognize windows of another application on macOS?

I want to write a program for MacOS that performs certain actions in a third-party application by simulating keystrokes. Is there any way to keep track of the open windows of this other application? Only through the analysis of screenshots, or is it possible somehow at the system level, conditionally, to get the window descriptor, its position and size?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly, 2018-12-21
@oWart

For those who Google brings here: you can track open windows of third-party applications using Quartz Window Services of the Core Graphics framework

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question