Java GUI和键入控制台命令 [英] Java GUI and typing console commands

查看:138
本文介绍了Java GUI和键入控制台命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已成功从C程序中启动了一个jar文件,但现在我需要弄清楚如何在该控制台中实际输入命令。我尝试使用机器人类,但是当GUI窗口启动时它不会输入控制台窗口.......


任何帮助都将不胜感激,谢谢!


-Doug

I have sucessfully launched a jar file from a C program, but now i need to figure out how to actually type commands into that console. I tried using the robot class, but when the GUI window is up it will not type into the console window.......

Any help would be greatly appreciated, thank you!

-Doug

推荐答案

我想有希望澄清......如果按下button1我想要输入2008年并点击返回,以便程序将其作为命令。希望这能搞清楚。


doug
I guess to hopefully clarify......If button1 is pressed i want to type in "year 2008" and hit return so that the program takes that as a command. Hope this clears it up.

doug


让我说得对,因为听起来很疯狂。你有一个带有GUI界面的程序想要模拟在控制台窗口上的输入吗?!为什么?
Let me get this right, because it sounds completely crazy. You have a program with a GUI interface that want to simulate typing onto a console window?! Why?


它用于已经编写的程序,而不必输入命令play。或者暂停,他们希望我有一个GUI,如果按下播放按钮,它将通过命令.....
Its for a program that was already written, and instead of having to type in the command "play" or "pause", they want me to have a GUI that if you press the play button it will have command passed.....


这篇关于Java GUI和键入控制台命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆