Automação com PyAutoGUI e Pyperclip

Este script utiliza as bibliotecas PyAutoGUI e Pyperclip para automatizar a escrita de uma mensagem. Ele copia a mensagem para a área de transferência e a cola em uma posição específica da tela. Isso demonstra como facilitar tarefas repetitivas em um ambiente de desktop.
Anonymous
python
11/28/2024 5:36 PM
320 B
22
Indexable
import pyautogui
import pyperclip

def escrever(mensagem):
    pyperclip.copy(mensagem)
    pyautogui.hotkey('ctrl','v')

## Mover e clicar
pyautogui.click(2185,217,duration=2)

## Escrever
escrever('Automação é Incrível!')
Editor is loading...
Leave a Comment