Skip to content

Instantly share code, notes, and snippets.

@KaushikShresth07
Created June 17, 2021 11:51
Show Gist options
  • Save KaushikShresth07/607fd2bfd725ed97526427497114ff97 to your computer and use it in GitHub Desktop.
Save KaushikShresth07/607fd2bfd725ed97526427497114ff97 to your computer and use it in GitHub Desktop.
from pyautogui import click
from time import sleep
from keyboard import write
from keyboard import press
from os import startfile
def WhatsappMsg(name,message,Path):
startfile(str(Path))
sleep(15)
click(x=195, y=115)
sleep(1)
write(name)
sleep(0.5)
click(x=188, y=249)
sleep(0.5)
click(x=571, y=690)
sleep(0.5)
write(message)
press('enter')
def WhatsappCall(name,Path):
startfile(str(Path))
sleep(15)
click(x=195, y=115)
sleep(1)
write(name)
sleep(1)
click(x=188, y=249)
sleep(1)
click(x=571, y=690)
sleep(1)
click(x=1198, y=63)
def WhatsappChat(name,Path):
startfile(str(Path))
sleep(15)
click(x=195, y=115)
sleep(1)
write(name)
sleep(1)
click(x=188, y=249)
sleep(1)
click(x=571, y=690)
sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment