← Back to team overview

sikuli-driver team mailing list archive

[Question #687926]: [2.0.0] An error occurs if you execute the type command without opening the IDE

 

New question #687926 on Sikuli:
https://answers.launchpad.net/sikuli/+question/687926

Hello.
Executing the following script from the command line results in an error.
It runs normally when run from the IDE.
How can I solve it?


Environment:
------------
OS Version: Windows 10 Home 1809(17763.864)
Sikuli version: 2.0.0
Java version: openjdk version "12.0.2" 2019-07-16


Script:(sikulix-test.sikuli ---> sikulix-test.py)
-------------------------------------------------
1  type('r', Key.WIN)


Run Command:
------------
C:\projects\sikulix-test>java -jar C:\sikulix\sikulix-2.0.0.jar -r sikulix-test.sikuli


Output:
-------
[log] ( メタ )  TYPE "r"
[error] script [ sikulix-test ] stopped with error in line 1
[error] java.lang.IllegalArgumentException ( java.lang.IllegalArgumentException: Key: Not supported character: r )
[error] --- Traceback --- error source first
line: module ( function ) statement
1: main (  <module> )     type('r', Key.WIN)
[error] --- Traceback --- end --------------

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.