← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #218078]: type() foreign symbol example

 

Question #218078 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/218078

necips posted a new comment:
So funktioniert es auf meinem Rechner!

german = {u"ä":"0228", u"ö":"0246", u"ü":"0252"}

def type_ger(line):
    for letter in line:
        nums = german.get(letter, "")
        if nums == "":
            type(letter)
        else :
            keyDown(Key.ALT)
            for n in nums:                
                eval( "type(Key.NUM" + n + ")")
            keyUp()

type_ger(u"Flöte")

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.