简体   繁体   English

从 Java 向应用程序发送输入?

[英]Sending input to application from Java?

Platform is windows only.平台仅限 windows。 From Java I'd like to send input (key strokes and mouse clicks) to the current running application (it's a full screen directx app if that matters).从 Java 我想将输入(击键和鼠标点击)发送到当前正在运行的应用程序(如果重要的话,它是一个全屏 Directx 应用程序)。

I know theoretically I could use JNI/JNA to access the Win32 API and use or the like, but honestly not familiar with those nor the win32 api.我知道理论上我可以使用 JNI/JNA 访问 Win32 API 并使用或类似的东西,但老实说不熟悉这些,也不熟悉 win32 api。 I'm hoping there is a nice easy Java library out there that has already wrapped this all up in a nice neat package?我希望那里有一个非常简单的 Java 库,它已经将这一切都包装在一个漂亮的 package 中?

Take a look at this .看看这个

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM