sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #05145
Re: [Question #169454]: [Java] using type with key events in eclipse
Question #169454 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/169454
Description changed to:
******
for rc2: see faq 1444
for rc3: now the class Key can be used the same way in Java as in
Python. see the docs for more info.
--- comment on rc3 pre release:
s.type(null, Key.F4, KeyModifier.ALT);
this will not work, since Key.F4 is of type Character and type String is
needed.
workaround:
s.type(null, Key.F4+"", KeyModifier.ALT);
to enforce a String parameter.
------------------------------------------------------------------------
I'm moving my scripts from sikuli to eclipse. They were originally written in jython and now I have trouble simulating key events.
E.g:
(In Sikuli X)
type(Key.ENTER)
type(Key.F2)
type(Key.DOWN)
(In eclipse)
This is what I tried
s.type(null, "", KeyEvent.VK_ENTER);
The output that I get in the console is:
[log] Ctrl+Alt+TYPE ""
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.