sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #28738
Re: [Question #255660]: Cannot make Sikuli X type in Turkish language
Question #255660 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255660
ceyhunganioglu posted a new comment:
Sorry to bother you again RaiMan
I am trying to create a function for Turkish characters. What I am
trying to do is when a string comes to function yaz, for each character
on the string matches the array harfler, gets the value and tries to
write the working ALT solution.
I get the error message of:
[error] script [ *Adsız ] stopped with error in line 12
[error] KeyError ( 0 )
[error] --- Traceback --- error source first line: module ( function ) statement 5: main ( yaz ) yazilacak = list(harfler[i])
what is wrong with this one?
def yaz(metin):
for i in range(0, len(metin)):
harfler = {"ü": "0252","Ü": "0220","ı": "0305","İ": "0304","ç": "0231","Ç": "0199","ö": "0246","Ö": "0214","ğ": "0287","Ğ": "0208","ş": "0351","Ş": "0350"}
yazilacak = list(harfler[i])
keyDown(Key.ALT)
type(Key.NUM+yazilacak[0])
type(Key.NUM+yazilacak[0])
type(Key.NUM+yazilacak[0])
type(Key.NUM+yazilacak[0])
keyUp()
yaz("üÜşŞ")
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.