← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #255660]: this was spammed by some arab idiot

 

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

    Status: Needs information => Open

ceyhunganioglu gave more information on the question:
#17 and #18 still not working

[log] TYPE "Ã"
[error] script [ Adsız ] stopped with error in line 15
[error] java.lang.IllegalArgumentException ( java.lang.IllegalArgumentException: Cannot convert character à )
[error] --- Traceback --- error source first line: module ( function ) statement 7: main ( yaz ) type(cMetin)
[error] --- Traceback --- end --------------

My test code is as follows:

harfler = {"ü": "0252","Ü": "0220","ı": "0305","İ": "0304","ç": "0231","Ç": "0199","ö": "0246","Ö": "0214","ğ": "0287","Ğ": "0208","ş": "0351","Ş": "0350"}
def yaz(metin):
    global harfler
    for cMetin in metin:
        yazilacak = harfler.get(cMetin) #returns None, if not a character in harfler
        if not yazilacak:
            type(cMetin)
        else:
            keyDown(Key.ALT)
            type(Key.NUM+yazilacak[0])
            type(Key.NUM+yazilacak[1])
            type(Key.NUM+yazilacak[2])
            type(Key.NUM+yazilacak[3])
            keyUp()
yaz("üÜ")

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