Type " into Windows cmd comes out as ~

Asked by Tony May

When I use the function:

type("\"")

into a Windows CMD I get the following typed into the CMD window:

~

How can I stop this happening so that it will always type " not ~

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Tony May (tonymay) said :
#1

Sikuli version 2.0.4 and 2.0.5

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

probably the problem that is covered in faq 933

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

At least for Windows since 2.0.x faq 933 is no longer relevant, since for typing into normal applications (like editors) we now auto-detect the actual keyboard layout and type should work as expected.

But since the command line is not a "normal" application (apparently different input techniques), it does not work here.

The easiest workaround is to start a commandline, switch it to an EN/US keyboardlayout and then type into it from SikuliX.

Of course you can also try to use paste() as mentioned in faq 933.

Revision history for this message
Tony May (tonymay) said :
#4

Hi RaiMan,

You say switch the commandline to an EN/US keyboard, how do you do this?

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

Windows system settings

Can you help with this problem?

Provide an answer of your own, or ask Tony May for more information if necessary.

To post a message you must log in.