type(Key.ENTER) results in invalied Key Code exception

Asked by Nassim Bahari

Hi,

I am using Sikuli X and try to surf in Chrome 14 in Virtual Maschine (Win 7 Ultimate). When I write:

type("http://www.ende.de" + Key.ENTER)

I get the error:

java.lang.IllegalAtgumentException:Invalid Key Code

Please help,
Thanks in advance

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

use:

paste("http://www.ende.de")
type( Key.ENTER)

see faq 933

Revision history for this message
Nassim Bahari (bahari-nassim) said :
#2

Thanks RaiMan, that solved my question.