[1.1.4] VNC: some key commands not working in Windows guests

Bug #1817031 reported by Christoph Fetzer on 2019-02-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sikuli
Medium
RaiMan

Bug Description

Hi!

I am currently developing some software tests using virtual Windows 7 and 10 guests in VirtualBox. My VNC-Server on the guests is TigerVNC.

I am discovering some keystrokes on the machines not working properly.

On Windows 10 my problems are:
the code:
client = vncStart(ip="192.168.56.100", port=5900, password="vnc" )
wait( 1 )
client.type( "r", Key.WIN )

nothing happens.
Instead this is working:

client.keyDown( Key.WIN )
client.type( "r" )
client.keyUp()

when I do this sequence:

client.keyDown( Key.WIN )
client.keyUp()

wait(1)

client.type( "cmd.exe" )
client.type( Key.ENTER )

wait(1)

client.type( "cd \\" )
client.type( Key.ENTER )
wait(1)

I am missing all the ENTER-keys

The combination
client.type( "cmd.exe" + Key.ENTER )
isn't working as well.

With the Windows 7 client,
I have the following:

client = vncStart(ip="192.168.56.101", port=5900, password="vnc" )
wait( 1 )

client.type( "r", Key.WIN )

-> nothing happens

client.keyDown( Key.WIN )
client.type( "r", Key.WIN )
client.keyUp()

-> works

In this code snippet RETURN-keys are working:

client.type( "cmd.exe" )
client.type( Key.ENTER )

wait(1)

client.type( "cd \\" )
client.type( Key.ENTER )
wait(1)

I am aware that I need to implement something like a handshake, a combination of
type(...)
and
wait(...)
for a screenshot but with the waits I have another issue I am asking for in another question.

Best regards,
Christoph

Christoph Fetzer (christest) wrote :

Sorry, was intended to become a question.

RaiMan (raimund-hocke) wrote :

No, it is ok as a bug.

Changed in sikuli:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.4
summary: - VNC some key commands not working in Windows guests
+ [1.1.4] VNC: some key commands not working in Windows guests
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers