eric2323223
eric2323223

Reputation: 3628

How to type 'a' using robot.pressKey?

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

Upvotes: 0

Views: 2553

Answers (2)

oliholz
oliholz

Reputation: 7507

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

Upvotes: 2

Gergely Bacso
Gergely Bacso

Reputation: 14651

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)

Upvotes: 1

Related Questions