sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #38568
Re: [Question #295399]: Null keymodifier in type()
Question #295399 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/295399
Status: Open => Answered
RaiMan proposed the following answer:
--- Sorry, if my problem is not worth taking your attention.
I do not understand this negative comment, hope it is a translation problem ;-)
You surely have my attention and furthermore I appreciate, that you are trying to answer other peoples questions.
I simply did not understand your problem.
--- type(key, keymodifier)
key is a string and keymodifier can be an integer value (created from a sum of KeyModifier constants)
hence
type(key)
is the same as
type(key, 0)
so here your "null-value" simply is the number 0.
--- your function typeCopyCommand
def typeCopyCommand(key="c", keym=Key.CTRL):
type(key,keym)
... usage:
typeCopyCommand()
typeCopyCommand(Key.ENTER, 0)
... the parameter names can be omitted, when the parameters are given in
the defined sequence.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.