开发者

Inserting text into another program's text field using Java

开发者 https://www.devze.com 2023-02-13 21:30 出处:网络
I\'ve searched the website and couldn\'t find an answer to a problem. I\'m trying to write a program in java that will input text and submit it into another java program.

I've searched the website and couldn't find an answer to a problem.

I'm trying to write a program in java that will input text and submit it into another java program.

So far, I know that one option could开发者_开发技巧 be using Robot but I think that would mean I would need to know exactly where the program's text box is on the screen.

Any suggestions would be appreciated, and if this would be easier to do in C++ I would be okay with that.

Thanks in advance for your help


Without cooperation with the other java application, your only choices (both bad) are Robot and JNI

0

精彩评论

暂无评论...
验证码 换一张
取 消