You couldn't ask pyautogui to write cyrillic, but there was a way around: just write cyrillic symbols with QWERTY selected, and write() that gibberish. That's ugly, so I added cyrillic, the same length as that QWERTY thing, and now it checks if the symbol is in cyrillic every press() call. If it is, it just gets its index and presses a QWERTY symbol with that index. If russian keyboard is selected - it works just fine.
Also changed that pyscreeze.locateOnWindow. to pyscreeze.locateOnScreen cuz it kept throwing an error.
You couldn't ask pyautogui to write cyrillic, but there was a way around: just write cyrillic symbols with QWERTY selected, and
write()
that gibberish. That's ugly, so I added cyrillic, the same length as that QWERTY thing, and now it checks if the symbol is in cyrillic everypress()
call. If it is, it just gets its index and presses a QWERTY symbol with that index. If russian keyboard is selected - it works just fine.Also changed that
pyscreeze.locateOnWindow.
topyscreeze.locateOnScreen
cuz it kept throwing an error.