← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #263411]: type not typing Russian letters

 

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

Sergey Taranenko posted a new comment:
from java.awt.im import InputContext

def getKeyboardLang():
    return InputContext.getInstance().getLocale().toString()

lng = getKeyboardLang()
if lng == "ru_RU":
	type(u'\u043a')  # u'\u043a') = rus "к"  http://www.fileformat.info/info/unicode/char/search.htm?q=%D0%BA&preview=entity
elif lng == "en_US":
        type("r")

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.