Unable to type '_' and capital letters in VNC screen

Asked by Tom Vandenbroeck

I made a script in SikuliX to run on a 'headless' VNC.
When I try to execute commands with capital letters in it or use the underscore, I end up with lower case letters and with '-' (hyphen).

Here is my code:

vncScreen = edu.unh.iol.dlc.VNCScreen.start(ipAddress, vncPort, 10, 10000);
vncScreen.type("myCommand_to_execute", Keyl.ENTER);

output on VNCScreen is:

mycommand-to-execute

It looks like the SHIFT is not pressed correctly when using the VNCScreen.

Can anyone help me with this?

Thanks

Question information

Language:
English Edit question
Status:
Expired
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Tom Vandenbroeck (tomvdb) said :
#1

Has anyone else seen this problem?

Revision history for this message
TestMechanic (ndinev) said :
#2

I am not sure if you are using type command correctly. Why ENTER is used as modifier?

Here is type command definition

type([PSMRL, ]text[, modifiers])
Type the text at the current focused input field or at a click point specified by PSMRL.

Parameters:
PSMRL – a pattern, a string, a match, a region or a location that evaluates to a click point.
modifiers – one or more modifier keys (Class Key)

Revision history for this message
Tom Vandenbroeck (tomvdb) said :
#3

I'm using the following command in my script (ENTER is not used as a modifier):

vncScreen = edu.unh.iol.dlc.VNCScreen.start(ipAddress, vncPort, 10, 10000);
vncScreen.type("myCommand_to_execute" + Key.ENTER);

I don't know why it was not copied correctly to this page.

Sorry for the confusion

Revision history for this message
TestMechanic (ndinev) said :
#4

I do not have any experience with VNC module so I am trying to generate ideas here :-)

1. Could you try to use keyModifier.SHIFT and see what will happen?
2. On the servers side is there any VNC server option that you can experiment with?

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
RaiMan (raimund-hocke) said :
#6

please try out the new VNC implementation with the latest SikuliX 1.1.1

Revision history for this message
Tom Vandenbroeck (tomvdb) said :
#7

Hello Raiman,

Thank for the answer.

I was already using the latest SikuliX 1.1.1 version, as my colleague did the implementation for the new VNC implementation.

Revision history for this message
RaiMan (raimund-hocke) said :
#8

LOL, than your colleague should be able to fix the problem ;-)

... all the best to you both.