0

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

eric2323223
  • 3,518
  • 8
  • 40
  • 55

2 Answers2

2

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

oliholz
  • 7,447
  • 2
  • 43
  • 82
1

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)

Community
  • 1
  • 1
Gergely Bacso
  • 14,243
  • 2
  • 44
  • 64