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.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to