RosettaCodeData/Task/Simulate-input-Mouse/Java/simulate-input-mouse-2.java

2 lines
112 B
Java

button.doClick(); //optionally, give an integer argument for the number of milliseconds to hold the button down