Android Question Change mouse position by code


Active Member
Licensed User
Longtime User
I would like to change mouse position by b4a code. In B4J there is an example (robot API) which works very fine. But when I try to run this example by B4A I receive an error at line "":
this class seems to be unknown

Dim jo As JavaObject
robot = jo.RunMethodJO("GetApplication",Null).RunMethodJO("createRobot",Null)
MouseMove(2, 2)



Well-Known Member
Licensed User
Longtime User
This code will not work on Android.

I don't think that there is any API in Android that allows you to control the mouse position.
How about remote app that can control Android device from PC?
Upvote 0