[1.1.2] VNC: Special keys (Key.UP) dont work

Asked by Chp

Hello

app version:
sikulix1.1.2.jar
win10 64-bit
Vmlite vnc server for android

my code is:
sVnc = vncStart('-.-.-.-', 5901)
sleep(5)
sVnc.type(Key.UP)

then throw a exception:

 sVnc.type(Key.UP)
 at org.sikuli.vnc.VNCRobot.charToXlib(VNCRobot.java:200)
 at org.sikuli.vnc.VNCRobot.typeChar(VNCRobot.java:127)
 at org.sikuli.script.Region.keyin(Region.java:4397)
 at org.sikuli.script.Region.type(Region.java:4265)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)

java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Cannot type character ?

without vnc,running on local is normal
sVnc.type(Key.LEFT), sVnc.type(Key.RIGHT), sVnc.type(Key.DOWN) is woking correctly on local and vnc

Help me please, and i am sorry for my enlish
Thanks in advance!!!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

thanks for finding.

I made it a bug and fixed it.

A new version of 1.1.2 should be available during the next hour.

Revision history for this message
Chp (chpnick) said :
#2

Thanks RaiMan, that solved my question.