简体   繁体   English

触发数字键盘(右)输入单击KeyEvent

[英]Trigger numpad (right) enter click KeyEvent

I'm doing an automation to an old terminal application. 我正在对旧的终端应用程序进行自动化。 For confirm login is needed enter - not normal, but right enter - numpad enter. 要确认是否需要登录,请输入-不正常,但请正确输入-数字键盘输入。

Robot r = new Robot();
r.keyPress(KeyEvent.VK_ENTER);

I found ( in Coderanch ), that in Java it's not possible, but four years ago... Is there any option to do this now? 我发现( 在Coderanch中 )在Java中是不可能的,但是四年前...现在有什么选择吗? I'm using OpenText HostExplorer terminal, so I'll try dig in settings... 我正在使用OpenText HostExplorer终端,因此我将尝试在设置中进行挖掘...

Just go in HostExplorer: 只需进入HostExplorer:

Options -> Keyboard Mapping

on image you can see, that right CTRL is doing ENTER key. 在您可以看到的图像上,右边的CTRL正在执行ENTER键。

So click on main ENTER, in Function group choose Action Keys, choose Enter and save your updated mapping... OMFG! 因此,单击主ENTER,在“功能”组中选择“操作键”,选择“回车”并保存更新的映射... OMFG!

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

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