Skip to content

Instantly share code, notes, and snippets.

@renan778
Last active August 24, 2022 14:01
Show Gist options
  • Save renan778/b2ce999f5c6853839d1ae11ef4d17b1e to your computer and use it in GitHub Desktop.
Save renan778/b2ce999f5c6853839d1ae11ef4d17b1e to your computer and use it in GitHub Desktop.
import pyautogui as pg
import time
time.sleep(10)
pg.PAUSE = 0.5
while (True):
# comando no excel
pg.click(x=-1253, y=255)
pg.hotkey('ctrl', 'c')
pg.hotkey('alt', 'tab')
#comandos no exchange
pg.click(x=-1306, y=123)
pg.hotkey('ctrl', 'v')
pg.press('tab')
pg.click(x=-628, y=530)
pg.press('enter')
pg.press('enter')
#comando no excel
pg.hotkey('alt', 'tab')
pg.click(x=-1422, y=255)
pg.hotkey('ctrl', '-')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment