[1.1.2] VNC: Special keys (Key.UP) dont work --- fixed 2017-05-25

Bug #1693110 reported by RaiMan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
RaiMan

Bug Description

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!!!

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → Fix Committed
importance: Undecided → Critical
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.2
summary: - [1.1.2] VNC: Special keys (Key.UP) dont work
+ [1.1.2] VNC: Special keys (Key.UP) dont work --- fixed 2017-05-25
Revision history for this message
RaiMan (raimund-hocke) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.