Digitar com automação

Aqui usa-se a automação pra digitar no bloco de notas e usar caracteres especiais, importando a biblioteca pyperclip e criando uma função básica
 avatar
Rantro0177
python
a year ago
262 B
8
Indexable
import pyautogui
import pyperclip

def desafio_escrita(texto):
    pyperclip.copy(texto)
    pyautogui.hotkey('command','v')

pyautogui.moveTo(1293,157, duration=2)
pyautogui.click(clicks=2)
desafio_escrita('Automação é incrível!')
pyautogui.hotkey('enter')
Editor is loading...
Leave a Comment