JHDANDROID
New Member
Hello,
Is there a way to use the function of pressing the mouse keys automatically? in the style of the ROBOT class.
I am using part of the code:
but it only worked for version 7 of java.
I currently have version 11 of Java and it gives me this error:
Note: I have reviewed the threads referring to the use of that function in which EREL recommends using but they are from the year 2014 using java v7.
And I also saw a recent post (java Version 11) that demonstrates how to automatically press keys using ROBOT Class and KEYCODE, but it only works for keys.
Very Thanks Much.
Is there a way to use the function of pressing the mouse keys automatically? in the style of the ROBOT class.
I am using part of the code:
Code Version 7 java:
Dim robot As JavaObject
robot.InitializeNewInstance("javafx.scene.robot.Robot", Null)
'.....
robot.RunMethod("mousePress", Array(1))
Sleep(300) ' delay 5 seconds'
but it only worked for version 7 of java.
I currently have version 11 of Java and it gives me this error:
java.lang.RuntimeException: Method: mousePress not matched.
Note: I have reviewed the threads referring to the use of that function in which EREL recommends using but they are from the year 2014 using java v7.
And I also saw a recent post (java Version 11) that demonstrates how to automatically press keys using ROBOT Class and KEYCODE, but it only works for keys.
Very Thanks Much.
Last edited: