Windows 10, Type not working properly

Asked by Steen

This works on Win7 with Sikuli 1.1.0:

App.open("C:\Windows\System32\cmd.exe")
type("copy /y ")

But does not work on Windows 10

[log] TYPE "copy /y "

[error] script [ Update_folders ] stopped with error in line 242
[error] java.lang.IllegalArgumentException ( java.lang.IllegalArgumentException: Invalid key code )
[error] --- Traceback --- error source first line: module ( function ) statement 103: main ( backup_previousbuild ) type("copy /y ")
[error] --- Traceback --- end --------------

This is a script that is used crossplatform, so changing all TYPE to PASTE does not work well on older platforms.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Steen
Solved:
Last query:
Last reply:
Revision history for this message
Steen (steenc) said :
#1

The / is the culprit, But why?
[error] java.lang.IllegalArgumentException ( java.lang.IllegalArgumentException: Invalid key

Revision history for this message
Steen (steenc) said :
#2

Changed Keyboard to US instead of Danish and now it works.

Revision history for this message
Steen (steenc) said :
#3

Changed Keyboard to US instead of Danish and now it works.

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

Yep, you got it ;-)