Android Question Change mouse position by code

prokli

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 "com.sun.glass.ui.Application":
this class seems to be unknown

Dim jo As JavaObject
jo.InitializeStatic("com.sun.glass.ui.Application")
robot = jo.RunMethodJO("GetApplication",Null).RunMethodJO("createRobot",Null)
MouseMove(2, 2)


Thanks
 

susu

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
Top