Diffence between the text registered in the script ant the text executed

Asked by MAR on 2018-06-11

Hello,

I want to do a Remote Desktop, the script does:
- Open a Remote Desktop thanks to openApp("mstc.exe") => OK
- Wait the field to enter the text => OK
- Enter the text in the field thanks to : type("terrain1"+Key.ENTER) => NOK
=> The text entered during the execution of the script is terrain& instead of terrain1.
   The "1" is replaced by "&".

Have you an idea of this problem?

Nota: I use Sikuli 1.1.0 / 64-bit

Thank you in advance for your response.

Best regards,
Laurent

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
MAR
Solved:
2018-06-11
Last query:
2018-06-11
Last reply:
2018-06-11
RaiMan (raimund-hocke) said : #1

should first be a question

RaiMan (raimund-hocke) said : #2

type only works against a US keyboard layout (faq 933)

MAR (olimar0613) said : #3

Thank you for your quick response.
I introduced a script to automatically set the keyboard from FR (AZERTY) to EN/US (QWERTY) during the execution. Now it works.
OK for your first comment.
Best regards