sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #44435
Re: [Question #660530]: Typing a variable automatically presses enter for me.
Question #660530 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660530
Status: Open => Answered
RaiMan proposed the following answer:
Your type(doc) is logged as
[log] TYPE "510#ENTER."
this means, that your doc variable is string, that is ended with a \n,
which in turn is interpreted as an type(Key.ENTER), which surely
activates some ok button.
type(doc.strip()) might help (strips white space from beginning and end
of string)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.