Question

Is there any cross-platform way to figure out which window is at a certain point on the screen?

If there is not, what would be the equivalent function to getWindowAtPoint for linux (X11?) and OS X?

Was it helpful?

Solution

There is functionality in Swing to identify the component at a given point. There is no support in the Java Runtime for inquering about other windows, but the robot-classes can grab screenshots.

What do you need to do?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top