English 中文(简体)
点名/主动窗口
原标题:Get name of clicked application/active window

在 Java,如果我以背景和在我点击一些上诉时掌握我的 Java,我可以拿到名字。

Java方案应在用户不知情的情况下进行,并将向遥远的服务器发送使用名称。

最佳回答

我写了一幅时间跟踪器,当天情况类似,以跟踪我是如何在各种项目/申请上花时间的。 其想法是在当地跟踪我的申请使用情况,并使用POST向一个网络服务器申请集中伐木。 我还可以在任何机器上操作这一数据,而POST的要求仍然将回复到一个中央服务器上,因此,我可以追踪我自己在多台机器上的活动。

您可以使用的一件事是:JNI,以与

This Q/A should get you started: How can I read the window title with JNI or JNA?

某些地方(现在我无法找到)有<条码>。 JAR on the Net that summarys the home32 AP, make this类别的功用非常简单,可在 Java使用。

问题回答

While I question the motives for this, this won t be possible within the bounds of the Java API. You would need to use JNI to interface with the underlying OS, or make calls to an external program that could provide you with these details.





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签