Home > Software design >  pyautogui.write writes jumbled-up characters
pyautogui.write writes jumbled-up characters

Time:11-07

I am trying to automate a renaming task on Google Web Designer. pyautogui.write writes completely wring letters. for example:

 pyautogui.write("This is a sample text 12345/._-") 

returns this text This is q sq,ple text &é”’(=:°)

This is not an AZERTY QWERTY issue, and I've tried writing to other applications but it still has the same issue.

I am guessing it's because I'm using a mac. But not sure how to solve it.

CodePudding user response:

import keyboard

keyboard.write("This is a sample text 12345/._-")

Try this ;) 

pip install keyboard

  • Related