VNC: some key commands not working in Windows guests

Bug #1817031 reported by Christoph Fetzer
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
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

Revision history for this message
Christoph Fetzer (christest) wrote :

Sorry, was intended to become a question.

Revision history for this message
RaiMan (raimund-hocke) wrote : Re: [1.1.4] VNC: some key commands not working in Windows guests

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
RaiMan (raimund-hocke)
Changed in sikuli:
milestone: 1.1.4 → 2.1.0
summary: - [1.1.4] VNC: some key commands not working in Windows guests
+ VNC: some key commands not working in Windows guests
no longer affects: ubuntu
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.