B4J Question mouseMove with Java 11

petr4ppc

Well-Known Member
Licensed User
Longtime User
Dear friends, please,

what is the best way for moving mouse cursor. In older Java I had:

B4X:
Dim robot As JavaObject
robot.InitializeNewInstance("javafx.scene.robot.Robot", Null)
Dim Point2D As JavaObject
Point2D.InitializeStatic("javafx.scene.input.mouseMove")
robot.RunMethod("mouseMove", Array As Object(x, y))

but what is the best way in Java 11 please?
Thank you
p4ppc
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…