Search code examples
pythonpyautogui

What's the difference between the write() and typewrite() functions in pyautogui?


I've seen the use of pyautogui.typewrite() but I can't find the documentation for it in the pyautogui docs. I did find the pyautogui.write() function in the docs and I wanted to know if they are the same thing, because from what I can see, they seem very similar.


Solution

  • As of version 1.0 there is no difference between write and typewrite. The write function has been chosen as the preferred invocation but currently write is just an alias for typewrite:

    write = typewrite  # In PyAutoGUI 1.0, write() replaces typewrite().