sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #35316
Re: [Question #272770]: Write () function not working
Question #272770 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272770
Status: Needs information => Answered
RaiMan proposed the following answer:
write() like print converts given variables to strings .
... but with "xxx" + someVariable, someVariable MUST be a string.
... but this should throw an error in case someVariable is not a string.
to be safe, either use:
"xxx" + str(someVariable)
or
"xxx %s zzz" % (someVariable)
or with write:
write("xxx", someVariable", "zzz")
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.