java - How to move the mouse cursor and apply a left click? -
in java trying following, none working (even though compiles well). doing wrong?
import java.awt.robot; import java.awt.event.inputevent; public class kiosk { public static void main(string[] args) { try { robot robot = new robot(); // move cursor robot.mousemove(300, 500); // , then, left click robot.mousepress(inputevent.button1_mask); robot.mouserelease(inputevent.button1_mask); } catch (exception e) { e.printstacktrace(); } } }
Comments
Post a Comment