Untitled
unknown
plain_text
10 months ago
505 B
11
Indexable
# Jeito 1
import pyautogui
import pyperclip
import time
def escrever_frase(frase):
pyperclip.copy(frase)
time.sleep(1)
pyautogui.hotkey('ctrl', 'v')
pyautogui.moveTo(743, 338, duration=2)
pyautogui.click()
escrever_frase('automoção é incrivel')
# Jeito 2
import pyautogui
def escrever_frase(frase):
pyautogui.write(frase) # Digita a frase diretamente
pyautogui.moveTo(743, 338, duration=2)
pyautogui.click()
escrever_frase('automoção é incrivel')
Editor is loading...
Leave a Comment