I'm making a project in java. In this i'm using speech recognition. Now i want to click button when i speak click. I want to know how to click mouse automatically?
Asked
Active
Viewed 94 times
-2
-
1`java.awt.Robot` can do that. – Andrew Thompson Mar 21 '18 at 10:56
-
1Why would you "fake" a mouse click? Just put the code you would execute when the mouse would have been clicked, in the event that is fired when you say **click** – primef Mar 21 '18 at 10:56
1 Answers
0
Now i want to click button when i speak click.
You can use:
button.doClick(...);

camickr
- 321,443
- 19
- 166
- 288