Hi to all
I have some problems sending some characters by simulating the keyboard with robot class.
The character Ascii '@' has a decimal code = 65 but if I send this code I do not write anything.
I can use RobotPaste but this not work on raspberry, with windows it's ok.
Thanks
I have some problems sending some characters by simulating the keyboard with robot class.
The character Ascii '@' has a decimal code = 65 but if I send this code I do not write anything.
B4X:
Dim robot As JavaObject
Dim jo As JavaObject
jo.InitializeStatic("com.sun.glass.ui.Application")
robot = jo.RunMethodJO("GetApplication",Null).RunMethodJO("createRobot",Null)
'Send @
Dim i As Int = lb.Tag ' Tag = 65
robot.RunMethod("keyPress", Array As Object(i))
Sleep(50)
robot.RunMethod("keyRelease", Array As Object(i))
I can use RobotPaste but this not work on raspberry, with windows it's ok.
Thanks