Krozzz
1
Hello!
I’m interested if its possible to move mouse cursor to a specified point (like (100,100)) after some event.
P.S. I tried to import java.awt.Robot:
from java.awt import Robot
Robot r = Robot()
r.mouseMove(100,100)
but that gave me an error - invalid syntax
dep05d
2
Hi Krozzz,
Just get rid of the Robot on the second line
from java.awt import Robot
r = Robot()
r.mouseMove(100,100)
Since python is dynamically typed, you don’t need to specify it.
Dan
Krozzz
3
Thank you very much! That works.