是否可以使用Java检查OS X上的活动程序是什么?

时间:2014-02-12 08:03:14

标签: java macos

现在活动程序是Safari:

enter image description here

现在,是Skype:

enter image description here

这可以检测吗?感谢。

1 个答案:

答案 0 :(得分:1)

使用Rococoa库,(https://code.google.com/p/rococoa/)和这个答案:How to programmatically determine the currently active App in OS X?

你应该能够很容易地完成这个任务。