asweigart / pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
10.22k stars 1.24k forks source link

Modified typewrite() function. #768

Closed aniketkr01 closed 1 year ago

aniketkr01 commented 1 year ago

The typewrite() function is not working if we do not click at the position we want to write. Hence, to avoid this and start typing from a particular cursor position (by default, the current one), I have added the click() function inside it.

asweigart commented 1 year ago

Thanks, but I can't accept this PR because it changes how typewrite() works and thus breaks existing scripts that use PyAutoGUI.