sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #38213
Re: [Question #294104]: KeyModifiers while calling type not working
Question #294104 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/294104
Status: Open => Answered
RaiMan proposed the following answer:
using the basic keyboard commands key...(), you have to use the Key specifiers, like so
s.keyDown(Key.CMD);
just tested on my OSX 10.11: works
sbar = "sbar.png" # the lens symbol top right in menubar
spot = "spot.png" # the lens symbol of the spotlight popup
click(sbar) # get the spotlight popup
if exists(spot): # wait for the spotlight popup
type(Key.BACKSPACE) # purge current content
type("Vorschau") # enter something
wait(3) # to defer the IDE showing up
This should be the same if you do it in Java.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.