Skip to content

Instantly share code, notes, and snippets.

@JayantGoel001
Created April 9, 2021 04:30
Show Gist options
  • Save JayantGoel001/d551d65e0e066b8033b6bba70bea86e9 to your computer and use it in GitHub Desktop.
Save JayantGoel001/d551d65e0e066b8033b6bba70bea86e9 to your computer and use it in GitHub Desktop.
Automate Chat Messenger using pyautogui
import pyautogui
from time import *
text = 'Apple a day keeps doctor away.'
counter = 5
while counter:
sleep(5)
pyautogui.typewrite(text)
sleep(1)
pyautogui.press('enter')
counter-=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment