Answer the question
In order to leave comments, you need to log in
How to print Russian characters?
I tried to print via pyautogui but alas it only supports english letters.
import pyautogui
pyautogui.write("Привет")
Answer the question
In order to leave comments, you need to log in
import pyperclip, keyboard, time
def paste(text: str):
buffer = pyperclip.paste()
pyperclip.copy(text)
keyboard.press_and_release('ctrl + v')
pyperclip.copy(buffer)
def type(text: str, interval=0.0):
if interval == 0.0:
paste(text)
return
buffer = pyperclip.paste()
for char in text:
pyperclip.copy(char)
keyboard.press_and_release('ctrl + v')
time.sleep(interval)
pyperclip.copy(buffer)
type('Привет мир!', 0.1)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question