sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #03438
Re: [Question #161857]: Trying to make Google Chrome open a new tab.
Question #161857 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/161857
Status: Solved => Answered
RaiMan changed the question status:
You read the right doc, but you missed this at the beginning of
http://sikuli.org/docx/keys.html#special-keys
Usage: Key.CONSTANT (where CONSTANT is one of the following key names).
the constants like ENTER, ESC, ... are defined in a class called Key and the notation for a key to press is
Key.ENTER, Key.ESC, ...
when used in the first parameter of type() (meaning what to type)
Each key is a one character string and can be used this way (concatenation, mix in, ...)
The second parameter is reserved for some so called modifier keys, that can be pressed and hold during typing the content of the first parameter (ctrl, alt, shift, win, cmd (Mac)) and these keys have to be stated as
KEY_ALT, KEY_WIN, ...
I admit, that this is not very elegant and consistent from a users point
of view, but currently it is as it is ;-)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.