sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #47793
Re: [Question #670988]: Trouble passing string into type()
Question #670988 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670988
Status: Open => Answered
RaiMan proposed the following answer:
with type(keysequence, modifiers)
keysequence and modifiers are 2 function parameters, that cannot be
packed into one string parameter.
If you want to do something like that, you have to make a wrapper
function, that accepts a string and isolates the 2 parameters from there
to give it then to type() internally.
BTW:
type('P', Key.CTRL + Key.SHIFT)
does not make sense, since the uppercase P already internally is used as
lowercase p with a modifier SHIFT
so either
type('P', Key.CTRL)
or
type("p", Key.CTRL + Key.SHIFT) # recommended, since it is clearer
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.