Hi there...
For reading keys in java inline code using this:
When sending... how is possible the same "capture/record" of keys to send... ?
This for example takes Control key as "CONTROL" is it possible to send as "CONTROL" and press control (not as int keycode) ?
which is the magic word... getCode --> SendCode... with robot...?
Thanks in advance...
I do not want to use jnativehook for that.. only... is better to java inline if it is possible ofcourse...
For reading keys in java inline code using this:
B4X:
Sub KeyPressed_Filter (e As Event)
Dim jo As JavaObject = e
Dim EventType As String = jo.RunMethodJO("getEventType", Null).RunMethod("getName", Null)
Log(EventType)
Select Case EventType
Case "KEY_PRESSED"
Dim keycode As String = jo.RunMethod("getCode", Null)
Log(keycode)
end select
end sub
When sending... how is possible the same "capture/record" of keys to send... ?
This for example takes Control key as "CONTROL" is it possible to send as "CONTROL" and press control (not as int keycode) ?
which is the magic word... getCode --> SendCode... with robot...?
B4X:
Dim keycode As String = jo.RunMethod("getCode", Null)
Thanks in advance...
I do not want to use jnativehook for that.. only... is better to java inline if it is possible ofcourse...
Last edited: