Using Java to send key combinations

前端 未结 4 1553
孤独总比滥情好
孤独总比滥情好 2020-12-09 12:02

As per this previous link (How to send keyboard outputs) Java can simulate a key being pressed using the Robot class. However, how could a combination of key presses be simu

4条回答
  •  时光说笑
    2020-12-09 12:19

    This code is too close to native windows keyboard. Even Api keyboard "presses" are coming into Eclipse ide as those would pressed normally from ide. Keys was produced from current debugged application!! (jdk 1.8, win 7, hp)

提交回复
热议问题