简体   繁体   English

由 Java 编写的 Gui 程序。 每小时简单数学总和

[英]Gui program made from Java. Hourly simple maths sum

i have a program which is part of a simulator i play.我有一个程序,它是我玩的模拟器的一部分。

Every hour there is a GUI popup.每小时都有一个GUI弹出窗口。 It has text stating a simple maths question such as "5 + 6" followed by a text box and a submit button.它有文字说明一个简单的数学问题,例如“5 + 6”,后跟一个文本框和一个提交按钮。

I'm wondering if there is any way to create a code of any sort which can use to enter the text and submit the answer automatically?我想知道是否有任何方法可以创建可用于输入文本并自动提交答案的任何类型的代码?

Yes, take a look at Robot是的,看看 机器人

You can simulate user interaction , mouse movement/actions , key input .您可以模拟用户交互、鼠标移动/动作、按键输入。

If you want to however get text from screen outside of jre use OpenCV (computer vision), or Cheat Engine (manipulate/read memory, shoud work with jar as well bud im not sure,research first).但是,如果您想从 jre 之外的屏幕获取文本,请使用 OpenCV(计算机视觉)或作弊引擎(操作/读取内存,应该使用 jar 以及我不确定,请先研究)。

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

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