简体   繁体   English

将击键发送到单独的Java进程

[英]Sending Keystrokes to a separate Java process

I need to be able to send a set of keystrokes from one Java application to the other. 我需要能够将一组击键从一个Java应用程序发送到另一个Java应用程序。 I am creating the one that send the keystrokes, but I am unable to modify the receiving end and thus need some sort of method to send them through either the Java runtime or some other work-around method. 我正在创建一个发送击键的控件,但是我无法修改接收端,因此需要某种方法通过Java运行时或其他变通方法发送它们。

If anyone has any information that can point me in the right direction, I'd really appreciate it. 如果任何人有任何信息可以指出正确的方向,我将非常感激。

如果您的意思是两个不同的Java应用程序在不同的jvm上运行,那么这意味着两个进程,您要尝试进行进程间通信,只需使用某些套接字或文件就可以做到,也可以使用内存映射文件

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

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