Upload file to google drive and send to specific email automation (Unlimited file size)
I have created this code for a project that uses Keyboard and mouse automation to upload files to google drive and send to specific E-mail.
def sendFileToMail(mail, filename, customMessage):
from pyautogui import hotkey, typewrite, press
openEdgeWithURL("https://drive.google.com/drive/u/2/home")
hotkey('shift', 'u')
selectFileFromAutomations(filename)
customBreak(20)
press('/')
shortBreak()
typewrite(filename, interval=0.05)
miniBreak()
pressEnter()
longBreak()
press("down")
shortBreak()
press('.')
customBreak(15)
typewrite(mail, interval=0.05)
shortBreak()
pressEnter()
miniBreak()
pressTab(3)
typewrite(customMessage, interval=0.05)
pressTab(3)
shortBreak()
pressEnter()
longBreak()
closeCurrentWindow()
return True
Comments
Post a Comment