sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #34519
Re: [Question #255660]: this was spammed by some arab idiot
Question #255660 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255660
Status: Open => Answered
RaiMan proposed the following answer:
all these üÜçÇöÖ are turkish characters
the above was typed with the following script:
harfler = {u"ü": "0252",u"Ü": "0220",u"ı": "0305",u"İ": "0304",u"ç": "0231",u"Ç": "0199",
u"ö": "0246",u"Ö": u"0214",u"ğ": "0287",u"Ğ": "0208",u"ş": "0351",u"Ş": "0350"}
print harfler
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:
strType ="keyDown(Key.ALT);"
strType += "type(Key.NUM%s);"%yazilacak[0]
strType += "type(Key.NUM%s);"%yazilacak[1]
strType += "type(Key.NUM%s);"%yazilacak[2]
strType += "type(Key.NUM%s);"%yazilacak[3]
strType += "keyUp()"
exec( strType)
yaz(u"all these üÜçÇöÖ are turkish characters")
Sorry for the bullshit I have done in the previous version of the script
;-)
have fun anyways.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.