23

Is it possible to set/move the mouse pointer's location directly from Mathematica without using external tools like Run["xdotool mousemove x y"]?

rm -rf
  • 88,781
  • 21
  • 293
  • 472
my account_ram
  • 2,158
  • 11
  • 25

1 Answers1

40
Needs["JLink`"]
ReinstallJava[]
robotclass=JavaNew["java.awt.Robot"]
robotclass@mouseMove[#,300]&/@Range@900;
rm -rf
  • 88,781
  • 21
  • 293
  • 472
Andreas Lauschke
  • 4,009
  • 22
  • 20