sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #00290
Re: [Question #141011]: get a string for previous def()
Question #141011 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/141011
Status: Open => Answered
RaiMan proposed the following answer:
def choosetemplate():
template=input("Choississez un Template\n1 - Add Access")
click( )
if (template=="1"):
type("a\n")
else:
type("aa\n")
return template
def descriptionfield(template):
if (template=="1"):
type("add access")
t = choosetemplate()
wait(1)
click( )
descriptionfield(t)
comment:
Do not use the Key constants outside of type() or keyDown(). their content might change with localization of type().
Just \n is what you need for a newline with all text related stuff
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.