Skip to content

Instantly share code, notes, and snippets.

@Midnex
Created June 30, 2021 23:13
Show Gist options
  • Save Midnex/c7cda707e823d9a87dcb12f8353bf03c to your computer and use it in GitHub Desktop.
Save Midnex/c7cda707e823d9a87dcb12f8353bf03c to your computer and use it in GitHub Desktop.
Example of PyAutoGUI
import pyautogui
pyautogui.click(1059, 217)
pyautogui.sleep(1)
pyautogui.write('data to find', interval=0.1)
pyautogui.sleep(1)
pyautogui.press('tab')
pyautogui.press('space')
# Show Table
pyautogui.moveTo(1844, 467, duration=1, tween=pyautogui.easeInOutQuad)
# Right Click Table
pyautogui.rightClick(1844, 467)
# Click Export
pyautogui.moveTo(1789, 537, duration=1, tween=pyautogui.easeInOutQuad)
pyautogui.click(1789, 537)
# Click Data
pyautogui.moveTo(1738, 507, duration=1, tween=pyautogui.easeInOutQuad)
pyautogui.click(1738, 507)
# Click Save
pyautogui.moveTo(958, 586, duration=2, tween=pyautogui.easeInOutQuad)
pyautogui.click(958, 586)
# Click Close
pyautogui.moveTo(1200, 650, duration=2, tween=pyautogui.easeInOutQuad)
pyautogui.click(1200, 650)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment