Unable to type double quotes --- use paste()

Asked by Prateeksha Chauhan

I want to write a java program in notepad using sikuli. The java program include a sysout statement to print a string. To do this I included the statement below in my code

 s.type("System.out.println(\"Hello\")");

this statement on types System.out.println( and the exception given below

Exception in thread "main" java.lang.IllegalArgumentException: Invalid key code

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
RaiMan (raimund-hocke) said :
#1

look faq 933

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

BTW: Why such complexity?
simply write the stuff to a file and open it in Notepad if necessary.

Can you help with this problem?

Provide an answer of your own, or ask Prateeksha Chauhan for more information if necessary.

To post a message you must log in.