PyAutoGui 无法粘贴 unicode 字符

问题描述

我想让我的 pyautogui 输入一些 Unicode 字符(例如:㻵矈궽ꢾ럪በ)但它不起作用。 我尝试了以下方法

def write(text: str):
    pyperclip.copy(text)
    if platform.system() == "Darwin":
        pyautogui.hotkey("command","v")
    else:
        pyautogui.hotkey("ctrl","v")

我也试过这个:

def write(text: str):
    pyperclip.copy(text)
    if platform.system() == "Darwin":
        pyautogui.hotkey("command","v")
        pyautogui.press("delete")
    else:
        pyautogui.hotkey("ctrl","v")
        pyautogui.press("delete")

但是还是不行。我怎么能这样做?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)