How to type 'a' using robot.pressKey?

好久不见. 提交于 2019-12-25 06:25:55

问题


It seems the robot.pressKey(KeyEvent.VK_A) could only type 'A'. How can I type the lower letter 'a' then?


回答1:


robot.pressKey(KeyEvent.VK_A) press the keyboard key A which is a lower 'a' without pressing Shift.




回答2:


The question section will help you in this: How to make the Java.awt.Robot type unicode characters? (Is it possible?)

(if you're satisfied with ascii chars)



来源:https://stackoverflow.com/questions/8530615/how-to-type-a-using-robot-presskey

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!