-
-
Save pmnlla/bc233e4ea225072d7c0f1447bd3b9b7e to your computer and use it in GitHub Desktop.
I tried this (copy and pasted it exactly into notepad++) but it said "NameError: name 'typewrite' is not defined" so I assumed maybe that was because you (maybe typo, i assumed this because the two lines under it have periods not commas) put a comma between pyatogui and typewrite, but when I added a period instead of a comma it said,"NameError: name 'enter' is not defined"
I tried this (copy and pasted it exactly into notepad++) but it said "NameError: name 'typewrite' is not defined" so I assumed maybe that was because you (maybe typo, i assumed this because the two lines under it have periods not commas) put a comma between pyatogui and typewrite, but when I added a period instead of a comma it said,"NameError: name 'enter' is not defined"
My code looks like this
import time
import pyautogui as auto
file = open("script.txt", "r")
auto.click(860, 719);
for x in file:
print(x)
time.sleep(0.7)
auto.write(x)
you can change the time.sleep to anything you want (I use 0.9 for Discord)
I tried this (copy and pasted it exactly into notepad++) but it said "NameError: name 'typewrite' is not defined" so I assumed maybe that was because you (maybe typo, i assumed this because the two lines under it have periods not commas) put a comma between pyatogui and typewrite, but when I added a period instead of a comma it said,"NameError: name 'enter' is not defined"
That is because 'typewrite' does not exist and is not part of the pyautogui library. Use 'write' instead
try this:
I haven't tried it out myself, but hopefully it works for you